1
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
- (void)layoutSubviews {
|
||||
[super layoutSubviews];
|
||||
// 固定圆角块高度 20pt,使之更接近设计稿
|
||||
CGFloat pillHeight = 20.0;
|
||||
CGFloat pillHeight = 30.0;
|
||||
CGFloat vPadding = MAX(0.0, (self.contentView.bounds.size.height - pillHeight)/2.0);
|
||||
CGRect frame = CGRectInset(self.contentView.bounds, 0, vPadding);
|
||||
self.kb_pillBackgroundView.frame = frame;
|
||||
|
||||
Reference in New Issue
Block a user