【发布时间】:2011-09-14 03:32:46
【问题描述】:
Setting the repeatCount to 1e100f will cause the animation to repeat until it is removed from the layer.
这是我的代码:
CABasicAnimation *flicker = [CABasicAnimation animationWithKeyPath:@"opacity"];
flicker.repeatCount = 1e100f;
Xcode 给出警告:
Semantic Issue: Magnitude of floating-point constant too large for type 'float'; maximum is 1.7014116E+38
我做错了什么?
【问题讨论】:
-
Googol 文档看起来不太正确。提交错误报告,看看 Apple 是否知道无限循环的正确方法。
标签: ios xcode core-animation caanimation