来自苹果文档:
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
我做错了什么?