V5.0.0bug修复
This commit is contained in:
@@ -18,9 +18,6 @@ Strong UIView *bgView;
|
||||
Strong IfishChatView *chartView;
|
||||
Strong IfishChatView *chartHolder;
|
||||
Strong UILabel *titleLabel;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartHeight;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartWidth;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lableHeight;
|
||||
Strong UIButton *predayButton;
|
||||
Strong UIButton *nextdayButton;
|
||||
Strong UIImageView *bgImage;
|
||||
@@ -71,6 +68,7 @@ Strong UIImageView *bgImage;
|
||||
- (IfishChatView *)chartHolder{
|
||||
if (!_chartHolder) {
|
||||
_chartHolder = InitObject(IfishChatView);
|
||||
_chartHolder.backgroundColor = [UIColor clearColor];
|
||||
}
|
||||
return _chartHolder;
|
||||
}
|
||||
@@ -112,7 +110,7 @@ Strong UIImageView *bgImage;
|
||||
}];
|
||||
|
||||
[self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.mas_equalTo(315);
|
||||
make.width.mas_equalTo(kSizeFrom750(720));
|
||||
make.center.mas_equalTo(self);
|
||||
}];
|
||||
|
||||
@@ -125,25 +123,25 @@ Strong UIImageView *bgImage;
|
||||
[self.bgImage mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.titleLabel.mas_bottom).offset(8);
|
||||
make.centerX.width.mas_equalTo(self.bgView);
|
||||
make.height.mas_equalTo(147);
|
||||
make.height.mas_equalTo(kSizeFrom750(335));
|
||||
make.bottom.mas_equalTo(self.bgView.mas_bottom).offset(-10);
|
||||
}];
|
||||
|
||||
[self.chartHolder mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.left.width.mas_equalTo(self.bgImage);
|
||||
make.height.mas_equalTo(130);
|
||||
make.height.mas_equalTo(kSizeFrom750(260));
|
||||
}];
|
||||
|
||||
[self.predayButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(10);
|
||||
make.height.mas_equalTo(30);
|
||||
make.width.mas_equalTo(60);
|
||||
make.left.mas_equalTo(kSizeFrom750(20));
|
||||
make.height.mas_equalTo(kSizeFrom750(60));
|
||||
make.width.mas_equalTo(kSizeFrom750(120));
|
||||
make.bottom.mas_equalTo(self.bgView.mas_bottom);
|
||||
}];
|
||||
|
||||
[self.nextdayButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.centerY.mas_equalTo(self.predayButton);
|
||||
make.right.mas_equalTo(-20);
|
||||
make.right.mas_equalTo(-kSizeFrom750(40));
|
||||
}];
|
||||
|
||||
[self.bgImage layoutIfNeeded];
|
||||
|
||||
Reference in New Issue
Block a user