iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut [英] iOS 6.1 and Xcode 4.6, enumaration warning UIViewAnimationCurveEaseOut

查看:130
本文介绍了iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

i have installed the new iOS 6.1 and Xcode 4.6, and now i have some warning of enumeration in my code, i can't resolve this:

[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

You're using the wrong option value. Try UIViewAnimationOptionCurveEaseOut.

这篇关于iOS 6.1和Xcode 4.6,枚举警告UIViewAnimationCurveEaseOut的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆