| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -754,50 +754,50 @@ - (void)configWithType:(EaseBlankPageType)blankPageType hasData:(BOOL)hasData ha | |||
| 754 | 754 | } | |
| 755 | 755 | break; | |
| 756 | 756 | } | |
| 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{ | ||
| 782 | 790 | 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 | - | ||
| 794 | 791 | } | |
| 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 | + | ||
| 800 | 795 | } | |
| 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 | + }]; | ||
| 801 | 801 | } | |
| 802 | 802 | ||
| 803 | 803 | - (void)reloadButtonClicked:(id)sender{ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments