我已经安装了新的iOS 6.1和Xcode4.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')我该如何解决这个警告?
发布于 2013-01-31 06:56:15
您使用了错误的选项值。试试UIViewAnimationOptionCurveEaseOut。
发布于 2015-02-05 21:29:09
将UIViewAnimationCurveEaseOut替换为UIViewAnimationOptionCurveEaseOut
例如:
[UIView animateWithDuration:0.4
delay:0.0
UIViewAnimationOptionCurveEaseOut
animations:^{
} completion:^(BOOL finished) {}];https://stackoverflow.com/questions/14615417
复制相似问题