Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要制作一个具有脉动效果(淡入淡出)的图像。我有另一种方法可以使用图像的 NSArray 来完成此操作,但如果有人可以指出我的更简单方法,我将不胜感激。我不想制作太多图像。
没有脉冲动画。你想做的是:
[UIView animateWithDuration:0.3 animation:^{ // Fade In } completion:^(BOOL finished) { [UIView animateWithDuration:0.3 animation:^{ // Fade Out } }];
根据需要重复。