iOS 6.1和Xcode 4.6,Enumeration警告UIViewAnimationCurveEaseOut

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

[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

UIViewAnimationCurveEaseOutreplace为UIViewAnimationOptionCurveEaseOut

例如:

 [UIView animateWithDuration:0.4 delay:0.0 UIViewAnimationOptionCurveEaseOut animations:^{ } completion:^(BOOL finished) {}];