I'm getting some warnings when I use this line of code.
当我使用这一行代码时,会得到一些警告。
[UIView setAnimationTransition:UIViewAnimationCurveEaseInOut forView:nil cache:YES];
then i am getting some warning this is following
然后我得到一些警告,这是接下来
Implicit conversion from enumeration type
UIViewAnimationCurve
to different enumeration typeUIViewAnimationTransition
隐式转换从枚举类型UIViewAnimationCurve到不同的枚举类型UIViewAnimationTransition
So please suggest to me how to resolve this problem in iOS 5.0.
所以请建议我如何在ios5.0中解决这个问题。
1 个解决方案
#1
4
UIViewAnimationCurveEaseInOut is not transition type for uiview animation transition, It's the type of animation curve. Following are the valid transition as per apple developer reference.
UIViewAnimationCurveEaseInOut不是uiview动画过渡类型,而是动画曲线类型。以下是根据apple developer引用的有效转换。
UIViewAnimationTransitionNone,
UIViewAnimationTransitionFlipFromLeft,
UIViewAnimationTransitionFlipFromRight,
UIViewAnimationTransitionCurlUp,
UIViewAnimationTransitionCurlDown.
Please use one of them. If you want to set animation curve then do the following.
请使用其中一个。如果要设置动画曲线,请执行以下操作。
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
#1
4
UIViewAnimationCurveEaseInOut is not transition type for uiview animation transition, It's the type of animation curve. Following are the valid transition as per apple developer reference.
UIViewAnimationCurveEaseInOut不是uiview动画过渡类型,而是动画曲线类型。以下是根据apple developer引用的有效转换。
UIViewAnimationTransitionNone,
UIViewAnimationTransitionFlipFromLeft,
UIViewAnimationTransitionFlipFromRight,
UIViewAnimationTransitionCurlUp,
UIViewAnimationTransitionCurlDown.
Please use one of them. If you want to set animation curve then do the following.
请使用其中一个。如果要设置动画曲线,请执行以下操作。
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];