修复了礼物面板贵族开通不会滚动的问题

This commit is contained in:
fengshuo
2023-03-15 18:11:39 +08:00
parent cfc8ed0922
commit b6c880bbab
5 changed files with 35 additions and 51 deletions

View File

@@ -37,8 +37,6 @@
@property (nonatomic,strong) UIButton *arrowButton;
///
@property (nonatomic,strong) UIButton *sendGiftButton;
///
@property (nonatomic,strong) UIButton *firstRechargeButton;
///
@property (nonatomic,strong) UIView *customCountView;
//
@@ -121,7 +119,6 @@
- (void)initSubViews {
self.backgroundColor= [UIColor clearColor];
[self addSubview:self.rechargeView];
[self addSubview:self.firstRechargeButton];
[self addSubview:self.sendOperationView];
[self.rechargeView addSubview:self.rechargeStackView];
@@ -163,12 +160,6 @@
make.size.mas_equalTo(CGSizeMake(15, 15));
}];
[self.firstRechargeButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(50, 14));
make.left.mas_equalTo(self.rechargeStackView.mas_right).offset(4);
make.centerY.mas_equalTo(self.rechargeStackView);
}];
[self.sendOperationView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self).offset(-15);
make.top.mas_equalTo(11);
@@ -321,7 +312,7 @@
}
- (void)setIsShowFirstRecharge:(BOOL)isShowFirstRecharge {
self.firstRechargeButton.hidden = !isShowFirstRecharge;
}
- (void)setType:(GiftSegmentType)type {
@@ -513,14 +504,4 @@
return _giftCountView;
}
- (UIButton *)firstRechargeButton {
if (!_firstRechargeButton) {
_firstRechargeButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_firstRechargeButton setImage:[UIImage imageNamed:@"gift_first_recharge_bg"] forState:UIControlStateNormal];
[_firstRechargeButton setImage:[UIImage imageNamed:@"gift_first_recharge_bg"] forState:UIControlStateSelected];
[_firstRechargeButton addTarget:self action:@selector(firstRechargeButtonAction:) forControlEvents:UIControlEventTouchUpInside];
}
return _firstRechargeButton;
}
@end