问题描述
- ios6.1和xcode4.6, enumaration警告
-
装了新的ios6.1和xcode4.6,然后在enumaration
警告UIViewAnimationCurveEaseOut
。代码:
[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationCurveEaseOut animations:^{ } completion:^(BOOL finished) {}];
警告:
Implicit conversion from enumeration type 'enum UIViewAnimationCurve' to different enumeration type 'UIViewAnimationOptions' (aka 'enum UIViewAnimationOptions')
如何解决这个警告?谢谢
解决方案
用错了选项值,换成 UIViewAnimationOptionCurveEaseOut
试试。
解决方案二:
换成UIViewAnimationOptionCurveLinear就能过
时间: 2024-10-01 01:49:12