修复了涂鸦礼物默认选中的问题
This commit is contained in:
@@ -141,8 +141,8 @@
|
||||
[self.segmentStackView addArrangedSubview:self.luckyGiftButton];
|
||||
[self.segmentStackView addArrangedSubview:self.nobleGiftButton];
|
||||
[self.segmentStackView addArrangedSubview:self.weekStarButton];
|
||||
[self.segmentStackView addArrangedSubview:self.packGiftButton];
|
||||
[self.segmentStackView addArrangedSubview:self.graffitiButton];
|
||||
[self.segmentStackView addArrangedSubview:self.packGiftButton];
|
||||
[self.segmentStackView addArrangedSubview:self.segmentPlaceView];
|
||||
[self.segmentStackView addArrangedSubview:self.playRuleButton];
|
||||
[self.segmentStackView addArrangedSubview:self.totalValueLabel];
|
||||
@@ -401,7 +401,7 @@
|
||||
[self.delegate xPGiftInfoView:self didClickSegment:_segmentType];
|
||||
}
|
||||
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPGiftInfoView:didClickItem:type:)]) {
|
||||
if (self.segmentType != GiftSegmentType_Graffiti && self.delegate && [self.delegate respondsToSelector:@selector(xPGiftInfoView:didClickItem:type:)]) {
|
||||
[self.delegate xPGiftInfoView:self didClickItem:self.lastSelectGift type:_segmentType];
|
||||
}
|
||||
}
|
||||
|
@@ -223,6 +223,7 @@
|
||||
}
|
||||
#pragma mark - Event Response
|
||||
- (void)changeButtonAction{
|
||||
[self clearData];
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPGraffitiGiftView:didClickChange:)]) {
|
||||
[self.delegate xPGraffitiGiftView:self didClickChange:self.changeButton];
|
||||
}
|
||||
|
@@ -404,6 +404,7 @@
|
||||
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickSegment:(GiftSegmentType)type {
|
||||
self.segmentType = type;
|
||||
self.giftBarView.type = type;
|
||||
self.giftBarView.drawGiftCount = 0;
|
||||
}
|
||||
|
||||
- (void)xPGiftInfoViewDidClickNobleEntrance:(XPGiftInfoView *)view {
|
||||
|
@@ -21,6 +21,7 @@
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
self.userInteractionEnabled = NO;
|
||||
self.timer = [XPWeakTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(dramGraffitiAnimationView) userInfo:@"" repeats:YES];
|
||||
}
|
||||
return self;
|
||||
|
Reference in New Issue
Block a user