iOS 6.1和Xcode 4.6,enuration warning UIViewAnimationCurveEaseOut

Pie*_*ero 35 iphone enums ios xcode4.6

我已经安装了新的iOS 6.1和Xcode 4.6,现在我的代码中有一些枚举警告,我无法解决这个问题:

[UIView animateWithDuration:0.4
                          delay:0.0
                        options:UIViewAnimationCurveEaseOut
                     animations:^{

                     } 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)

我怎么能解决这个警告?

Lil*_*ard 101

您使用的是错误的选项值.试试UIViewAnimationOptionCurveEaseOut.