大鹅开黑的UI
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#import "AccountInfoStorage.h"
|
||||
#import "NetImageView.h"
|
||||
#import "ThemeColor.h"
|
||||
#import "UIImage+Utils.h"
|
||||
///Model
|
||||
#import "UserInfoModel.h"
|
||||
#import "XPGiftUserInfoModel.h"
|
||||
@@ -96,6 +97,9 @@
|
||||
make.top.bottom.mas_equalTo(self);
|
||||
}];
|
||||
|
||||
[self.allMicroButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(50, 28));
|
||||
}];
|
||||
|
||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(43);
|
||||
@@ -227,8 +231,15 @@
|
||||
- (UIButton *)allMicroButton {
|
||||
if (!_allMicroButton) {
|
||||
_allMicroButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_allMicroButton setImage:[UIImage imageNamed:@"gift_all_micro_normal"] forState:UIControlStateNormal];
|
||||
[_allMicroButton setImage:[UIImage imageNamed:@"gift_all_micro_select"] forState:UIControlStateSelected];
|
||||
[_allMicroButton setBackgroundImage:[UIImage gradientColorImageFromColors:@[[ThemeColor cancelButtonGradientStartColor], [ThemeColor cancelButtonGradientEndColor]] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(10, 10)] forState:UIControlStateNormal];
|
||||
[_allMicroButton setTitleColor:[ThemeColor cancelButtonTextColor] forState:UIControlStateNormal];
|
||||
[_allMicroButton setBackgroundImage:[UIImage gradientColorImageFromColors:@[[ThemeColor confirmButtonGradientStartColor], [ThemeColor confirmButtonGradientEndColor]] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(10, 10)] forState:UIControlStateSelected];
|
||||
[_allMicroButton setTitleColor:[ThemeColor confirmButtonTextColor] forState:UIControlStateSelected];
|
||||
[_allMicroButton setTitle:@"全麦送" forState:UIControlStateSelected];
|
||||
[_allMicroButton setTitle:@"全麦送" forState:UIControlStateNormal];
|
||||
_allMicroButton.titleLabel.font = [UIFont systemFontOfSize:13];
|
||||
_allMicroButton.layer.masksToBounds = YES;
|
||||
_allMicroButton.layer.cornerRadius = 28 /2;
|
||||
[_allMicroButton addTarget:self action:@selector(allMicroButtonAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _allMicroButton;
|
||||
|
Reference in New Issue
Block a user