UIView动画警告

Has*_*ssy 7 objective-c uiview uiviewanimation ios uiviewanimation-curve

我正在使用以下代码

[UIView animateWithDuration:1.0
                      delay:0.05
                    options:UIViewAnimationCurveEaseIn
                 animations:^{

                                  //Code

                 } completion:^(BOOL finished) {}];
Run Code Online (Sandbox Code Playgroud)

我收到以下警告

Implicit conversion from enumeration type 'enum UIViewAnimationCurve' to different enumeration type 'UIViewAnimationOptions' (aka 'enum UIViewAnimationOptions')
Run Code Online (Sandbox Code Playgroud)

怎么解决这个?

Mik*_*ler 17

你应该使用UIViewAnimationOptionCurveEaseIn而不是.

UIViewAnimationCurveEaseIn 是其他方法中使用的不同枚举的一部分.