Ios UIView动画警告
我正在使用以下代码Ios UIView动画警告,ios,objective-c,uiview,uiviewanimation,uiviewanimation-curve,Ios,Objective C,Uiview,Uiviewanimation,Uiviewanimation Curve,我正在使用以下代码 [UIView animateWithDuration:1.0 delay:0.05 options:UIViewAnimationCurveEaseIn animations:^{ //Code } completion:^(BOOL finished)
[UIView animateWithDuration:1.0
delay:0.05
options:UIViewAnimationCurveEaseIn
animations:^{
//Code
} completion:^(BOOL finished) {}];
我得到以下警告
Implicit conversion from enumeration type 'enum UIViewAnimationCurve' to different enumeration type 'UIViewAnimationOptions' (aka 'enum UIViewAnimationOptions')
如何解决此问题?您应该改用
UIViewAnimationOptionCurveEaseIn
UIViewAnimationCurveEaseIn
是其他方法中使用的不同枚举的一部分