提交
This commit is contained in:
@@ -553,6 +553,7 @@ static NSInteger toSlowCount = 4;
|
||||
0.01 * NSEC_PER_SEC);
|
||||
if (self.isOpenSound) {
|
||||
[self.player seekToTime:CMTimeMake(0, 1)];
|
||||
_player.volume = 0.2;
|
||||
[self.player play];
|
||||
}
|
||||
__weak typeof(self) weakSelf = self;
|
||||
@@ -614,9 +615,9 @@ static NSInteger toSlowCount = 4;
|
||||
for (NSNumber *index in targetArrayIndex) {
|
||||
if (newCurrentIndex == index.integerValue) {
|
||||
QXTimePraizeSubView *targetGiftView = strongSelfInMain.allViewsArray[index.integerValue];
|
||||
targetGiftView.isSelected = YES;
|
||||
// targetGiftView.isSelected = YES;
|
||||
targetGiftView.resultView.hidden = NO;
|
||||
[targetGiftView startPulseAnimationWithLayer];
|
||||
// [targetGiftView startPulseAnimationWithLayer];
|
||||
|
||||
// 在主线程安全地修改数组
|
||||
[strongSelfInMain.targetArrayIndex removeObject:index];
|
||||
@@ -634,6 +635,11 @@ static NSInteger toSlowCount = 4;
|
||||
strongSelfInMain.isDrawing = NO;
|
||||
[strongSelfInMain stopFastAnimate];
|
||||
[strongSelfInMain animateFinishedSendGift];
|
||||
for (NSNumber *index in strongSelfInMain.finishTargetArrayIndex) {
|
||||
QXSkyPraizeSubView *targetGiftView = strongSelfInMain.allViewsArray[index.integerValue];
|
||||
targetGiftView.isSelected = YES;
|
||||
[targetGiftView startPulseAnimationWithLayer];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 使用局部变量避免频繁访问属性
|
||||
|
||||
Reference in New Issue
Block a user