アップルのドキュメントから:
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
私が間違っていることはありますか?