创建事件 create event UI
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
_selectButton.userInteractionEnabled = YES;
|
||||
_selectButton.layer.cornerRadius = 12;
|
||||
_selectButton.layer.masksToBounds = YES;
|
||||
[_selectButton setTitle:YMLocalizedString(@"XPAnchorPKTableViewCell3") forState:UIControlStateNormal];
|
||||
[_selectButton setTitle:YMLocalizedString(@"XPAnchorPKTableViewCell2") forState:UIControlStateNormal];
|
||||
_selectButton.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
[_selectButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
}
|
||||
|
@@ -28,6 +28,7 @@ typedef NS_ENUM(NSUInteger, GiftType) {
|
||||
GiftType_CP = 19, // CP
|
||||
GiftType_Custom = 20, // 定制
|
||||
GiftType_Bravo = 21, // 超级礼物
|
||||
GiftType_Lucky25 = 25, // 超级礼物
|
||||
};
|
||||
|
||||
//礼物类型
|
||||
|
@@ -49,6 +49,8 @@
|
||||
@property (nonatomic,strong)XPGiftInfoView *countryVC;
|
||||
/// 幸运 24
|
||||
@property (nonatomic,strong)XPGiftInfoView *lucky24VC;
|
||||
/// 幸运 25
|
||||
@property (nonatomic,strong)XPGiftInfoView *lucky25VC;
|
||||
/// cp
|
||||
@property (nonatomic,strong)XPGiftInfoView *cpVC;
|
||||
/// 定制
|
||||
@@ -201,6 +203,10 @@
|
||||
return self.superLuckyVC;
|
||||
}
|
||||
break;
|
||||
case GiftType_Lucky25: {
|
||||
return self.lucky25VC;
|
||||
}
|
||||
break;
|
||||
case GiftType_Country:{
|
||||
return self.countryVC;
|
||||
}
|
||||
@@ -231,7 +237,7 @@
|
||||
return i;
|
||||
} else if (tabGiftType == GiftType_Lucky && self.segmentType == GiftSegmentType_Lucky) {
|
||||
return i;
|
||||
} else if ((tabGiftType == GiftType_super || tabGiftType == GiftType_Lucky24) && self.segmentType == GiftSegmentType_SuperLucky) {
|
||||
} else if ((tabGiftType == GiftType_super || tabGiftType == GiftType_Lucky24 || tabGiftType == GiftType_Lucky25) && self.segmentType == GiftSegmentType_SuperLucky) {
|
||||
return i;
|
||||
} else if (tabGiftType == GiftType_WeekStar && self.segmentType == GiftSegmentType_WeekStar) {
|
||||
return i;
|
||||
@@ -248,6 +254,9 @@
|
||||
} else if (tabGiftType == GiftType_Bravo && self.segmentType == GiftSegmentType_Bravo) {
|
||||
return i;
|
||||
}
|
||||
// else if (tabGiftType == GiftType_Bravo && self.segmentType == GiftSegmentType_Bravo) {
|
||||
// return i;
|
||||
// }
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -533,6 +542,14 @@
|
||||
}
|
||||
return _superLuckyVC;
|
||||
}
|
||||
-(XPGiftInfoView *)lucky25VC{
|
||||
if(!_lucky25VC){
|
||||
_lucky25VC = [[XPGiftInfoView alloc]init];
|
||||
_lucky25VC.delegate = self;
|
||||
_lucky25VC.segmentType = GiftSegmentType_SuperLucky;
|
||||
}
|
||||
return _lucky25VC;
|
||||
}
|
||||
-(XPGiftInfoView *)countryVC{
|
||||
if(!_countryVC){
|
||||
_countryVC = [[XPGiftInfoView alloc]init];
|
||||
|
@@ -608,6 +608,7 @@ UIKIT_EXTERN NSString * kShowFirstRechargeView;
|
||||
if (giftInfo.giftType != GiftType_Game &&
|
||||
giftInfo.giftType != GiftType_super &&
|
||||
giftInfo.giftType != GiftType_Lucky24 &&
|
||||
giftInfo.giftType != GiftType_Lucky25 &&
|
||||
giftInfo.giftType != GiftType_Bravo) {
|
||||
[[GiftComboManager sharedManager] enableToCombo:NO];
|
||||
return;
|
||||
|
Reference in New Issue
Block a user