修改UI
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
@implementation KBToolBar
|
||||
|
||||
static NSString * const kKBAIKeyIdentifier = @"ai";
|
||||
static const CGFloat kKBAIButtonWidth = 36.0f;
|
||||
static const CGFloat kKBAIButtonHeight = 36.0f;
|
||||
static const CGFloat kKBAIButtonWidth = 40;
|
||||
static const CGFloat kKBAIButtonHeight = 40;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame{
|
||||
if (self = [super initWithFrame:frame]) {
|
||||
@@ -110,7 +110,7 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
|
||||
|
||||
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
if (i == 0) {
|
||||
make.centerY.equalTo(self.leftContainer);
|
||||
make.bottom.equalTo(self.leftContainer);
|
||||
make.width.mas_equalTo(kKBAIButtonWidth);
|
||||
make.height.mas_equalTo(kKBAIButtonHeight);
|
||||
} else {
|
||||
@@ -323,8 +323,9 @@ static const CGFloat kKBAIButtonHeight = 36.0f;
|
||||
} else {
|
||||
make.right.equalTo(self).offset(-12);
|
||||
}
|
||||
make.centerY.equalTo(self.mas_centerY);
|
||||
make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
|
||||
make.bottom.equalTo(self);
|
||||
// make.height.mas_equalTo(MAX(32.0f, kKBAIButtonHeight));
|
||||
make.height.equalTo(self);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user