修复了一些可能导致崩溃的问题
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#import <SDCycleScrollView/SDCycleScrollView.h>
|
||||
///
|
||||
#import "ThemeColor.h"
|
||||
#import "NSArray+Safe.h"
|
||||
|
||||
static NSString *kHideGiftViewInteractDot = @"kHideGiftViewInteractDot";//是否隐藏互动红点
|
||||
|
||||
@@ -108,7 +109,7 @@ static NSString *kHideGiftViewInteractDot = @"kHideGiftViewInteractDot";//是否
|
||||
#pragma mark - SDCycleScrollViewDelegate
|
||||
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index {
|
||||
if (self.titleArray.count > index) {
|
||||
NSString *str = self.titleArray[index];
|
||||
NSString *str = [self.titleArray safeObjectAtIndex1:index];
|
||||
if([str isEqualToString:@"首充有礼"]) {
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPGiftHeadTypeViewDidClickFirstRecharge:)]) {
|
||||
[self.delegate xPGiftHeadTypeViewDidClickFirstRecharge:self];
|
||||
|
@@ -225,7 +225,9 @@
|
||||
if (array.count) {
|
||||
[array makeObjectsPerformSelector:@selector(removeFromSuperview)];
|
||||
}
|
||||
[self.indexArray removeLastObject];
|
||||
if (self.indexArray.count > 0) {
|
||||
[self.indexArray removeLastObject];
|
||||
}
|
||||
[self cratePriceAttribute];
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPGraffitiGiftView:didDrawCompletion:)]) {
|
||||
[self.delegate xPGraffitiGiftView:self didDrawCompletion:self.pointArray];
|
||||
|
Reference in New Issue
Block a user