Implicit conversion from enumeration type "UIViewAnimationCurve" to another enumeration type "UIViewAnimationTransition"

I get some warnings when I use this line of code.

[UIView setAnimationTransition:UIViewAnimationCurveEaseInOut forView:nil cache:YES];

then I get a warning, it follows

Implicit conversion from enumeration type UIViewAnimationCurveto another enumeration typeUIViewAnimationTransition

So, please suggest me to solve this problem in iOS 5.0.

+3
source share
1 answer

UIViewAnimationCurveEaseInOut is not a transition type for a uiview animation transition, it is a type of animation curve. The following is a valid link to an apple developer link.

   UIViewAnimationTransitionNone,
   UIViewAnimationTransitionFlipFromLeft,
   UIViewAnimationTransitionFlipFromRight,
   UIViewAnimationTransitionCurlUp,
   UIViewAnimationTransitionCurlDown.

Please use one of them. If you want to set an animation curve, do the following.

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
+4

All Articles