我正在使用具有闪烁效果的UIButton。我已经使用这个代码上的UIButtonUILabel闪烁效果
UIButton *random = (UIButton *)[self.view viewWithTag:i+20];
random.alpha = 0;
[UIView animateWithDuration:0.2 delay:0.2 options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse animations:^{
random.alpha = 1;
} completion:nil];
该代码闪烁效果会闪烁的UIButton,但我想停止这种闪烁效果后3个闪烁,我不知道如何停止该闪烁的效果。 所以,如果有人知道解决方案,请帮助我。 在此先感谢。
不工作? –