Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut_Iphone_Ios_Enums_Xcode4.6 - Fatal编程技术网

Iphone iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut

Iphone iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut,iphone,ios,enums,xcode4.6,Iphone,Ios,Enums,Xcode4.6,我已经安装了新的iOS 6.1和Xcode 4.6,现在我的代码中出现了一些枚举警告,我无法解决此问题: [UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationCurveEaseOut animations:^{ } completion

我已经安装了新的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

替换为
UIViewAnimationCurveEaseOut
UIViewAnimationOptionCurveEaseOut

例如:

[UIView animateWithDuration:0.4
                          delay:0.0
                        UIViewAnimationOptionCurveEaseOut
                     animations:^{

                     } completion:^(BOOL finished) {}];

在阅读RW教程时遇到了同样的问题:谢谢Kevin Ballard!在添加UIViewAnimationOptionCurveEaseOut获取错误“使用未声明的标识符‘animationOptions’”@Naresh时,请确保在选项:param之前传入delay:0.0f param。因此,它是动画持续时间:延迟:选项:动画:完成: