处理UI
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
// 键盘区域(高度按照设计值做等比缩放,避免不同机型上按键被压缩/拉伸)
|
// 键盘区域(高度按照设计值做等比缩放,避免不同机型上按键被压缩/拉伸)
|
||||||
CGFloat keyboardAreaHeight = KBFit(200.0f);
|
CGFloat keyboardAreaHeight = KBFit(200.0f);
|
||||||
CGFloat bottomInset = KBFit(4.0f);
|
CGFloat bottomInset = KBFit(4.0f);
|
||||||
CGFloat topBarHeight = KBFit(40.0f);
|
// CGFloat topBarHeight = KBFit(40.0f);
|
||||||
CGFloat barSpacing = KBFit(6.0f);
|
CGFloat barSpacing = KBFit(6.0f);
|
||||||
|
|
||||||
self.keyboardView = [[KBKeyboardView alloc] init];
|
self.keyboardView = [[KBKeyboardView alloc] init];
|
||||||
@@ -65,10 +65,15 @@
|
|||||||
make.edges.equalTo(self);
|
make.edges.equalTo(self);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
// [self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
// make.left.right.equalTo(self);
|
||||||
|
// make.top.equalTo(self.mas_top).offset(0);
|
||||||
|
// make.height.mas_equalTo(topBarHeight);
|
||||||
|
// }];
|
||||||
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.right.equalTo(self);
|
make.left.right.equalTo(self);
|
||||||
make.top.equalTo(self.mas_top).offset(0);
|
make.top.equalTo(self.mas_top).offset(0);
|
||||||
make.height.mas_equalTo(topBarHeight);
|
make.bottom.equalTo(self.keyboardView.mas_top).offset(0);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[self.suggestionBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.suggestionBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
|||||||
Reference in New Issue
Block a user