Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 578d25b

Browse files
error 提示
1 parent 8389c23 commit 578d25b

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

‎Coding_iOS/Util/OC_Category/UIView+Common.m‎

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -754,50 +754,50 @@ - (void)configWithType:(EaseBlankPageType)blankPageType hasData:(BOOL)hasData ha
754754
}
755755
break;
756756
}
757-
imageName = imageName ?: @"blankpage_image_Default";
758-
UIButton *bottomBtn = hasError? _reloadButton: _actionButton;
759-
_monkeyView.image = [UIImage imageNamed:imageName];
760-
_titleLabel.text = titleStr;
761-
_tipLabel.text = tipStr;
762-
[bottomBtn setTitle:buttonTitle forState:UIControlStateNormal];
763-
_titleLabel.hidden = titleStr.length <= 0;
764-
bottomBtn.hidden = buttonTitle.length <= 0;
765-
766-
// 布局
767-
if (ABS(offsetY) > 0) {
768-
self.frame = CGRectMake(0, offsetY, self.width, self.height);
769-
}
770-
[_monkeyView mas_remakeConstraints:^(MASConstraintMaker *make) {
771-
make.centerX.equalTo(self);
772-
// if (ABS(offsetY) > 1.0) {
773-
// make.top.equalTo(self).offset(offsetY);
774-
// }else{
775-
make.top.equalTo(self.mas_bottom).multipliedBy(0.15);
776-
// }
777-
make.size.mas_equalTo(CGSizeMake(160, 160));
778-
}];
779-
[_titleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
780-
make.left.equalTo(self).offset(30);
781-
make.right.equalTo(self).offset(-30);
757+
}
758+
imageName = imageName ?: @"blankpage_image_Default";
759+
UIButton *bottomBtn = hasError? _reloadButton: _actionButton;
760+
_monkeyView.image = [UIImage imageNamed:imageName];
761+
_titleLabel.text = titleStr;
762+
_tipLabel.text = tipStr;
763+
[bottomBtn setTitle:buttonTitle forState:UIControlStateNormal];
764+
_titleLabel.hidden = titleStr.length <= 0;
765+
bottomBtn.hidden = buttonTitle.length <= 0;
766+
767+
// 布局
768+
if (ABS(offsetY) > 0) {
769+
self.frame = CGRectMake(0, offsetY, self.width, self.height);
770+
}
771+
[_monkeyView mas_remakeConstraints:^(MASConstraintMaker *make) {
772+
make.centerX.equalTo(self);
773+
// if (ABS(offsetY) > 1.0) {
774+
// make.top.equalTo(self).offset(offsetY);
775+
// }else{
776+
make.top.equalTo(self.mas_bottom).multipliedBy(0.15);
777+
// }
778+
make.size.mas_equalTo(CGSizeMake(160, 160));
779+
}];
780+
[_titleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
781+
make.left.equalTo(self).offset(30);
782+
make.right.equalTo(self).offset(-30);
783+
make.top.equalTo(_monkeyView.mas_bottom);
784+
}];
785+
[_tipLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
786+
make.left.right.equalTo(_titleLabel);
787+
if (titleStr.length > 0) {
788+
make.top.equalTo(_titleLabel.mas_bottom).offset(10);
789+
}else{
782790
make.top.equalTo(_monkeyView.mas_bottom);
783-
}];
784-
[_tipLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
785-
make.left.right.equalTo(_titleLabel);
786-
if (titleStr.length > 0) {
787-
make.top.equalTo(_titleLabel.mas_bottom).offset(10);
788-
}else{
789-
make.top.equalTo(_monkeyView.mas_bottom);
790-
}
791-
}];
792-
if (buttonTitle.length > 0) {
793-
794791
}
795-
[bottomBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
796-
make.centerX.equalTo(self);
797-
make.size.mas_equalTo(CGSizeMake(130, 44));
798-
make.top.equalTo(_tipLabel.mas_bottom).offset(25);
799-
}];
792+
}];
793+
if (buttonTitle.length > 0) {
794+
800795
}
796+
[bottomBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
797+
make.centerX.equalTo(self);
798+
make.size.mas_equalTo(CGSizeMake(130, 44));
799+
make.top.equalTo(_tipLabel.mas_bottom).offset(25);
800+
}];
801801
}
802802

803803
- (void)reloadButtonClicked:(id)sender{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /