|
|
@@ -73,9 +73,15 @@
|
|
|
}
|
|
|
|
|
|
- (void)updateContentViewHeight {
|
|
|
+
|
|
|
+ CGFloat otherHeight = 132;
|
|
|
+ if (self.remindButton.isHidden) {
|
|
|
+ otherHeight = 110;
|
|
|
+ }
|
|
|
+
|
|
|
CGFloat titleHeight = [MOTools getSizeFrom:self.titleLabel.text font:self.titleLabel.font maxSize:CGSizeMake(kScaleWidth(295) - 20, MAXFLOAT)].height;
|
|
|
[self.contentView mas_updateConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.height.mas_equalTo(titleHeight + 132);
|
|
|
+ make.height.mas_equalTo(titleHeight + otherHeight);
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
@@ -172,6 +178,13 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (void)hideRemindButton {
|
|
|
+ self.remindButton.hidden = YES;
|
|
|
+
|
|
|
+ [self.titleLabel mas_updateConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.top.mas_equalTo(20);
|
|
|
+ }];
|
|
|
+}
|
|
|
|
|
|
#pragma mark - Lazy
|
|
|
- (UIView *)backgroundView {
|