3
votes

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 type UIViewAnimationTransition

So please suggest to me how to resolve this problem in iOS 5.0.

1

1 Answers

4
votes

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.

   UIViewAnimationTransitionNone,
   UIViewAnimationTransitionFlipFromLeft,
   UIViewAnimationTransitionFlipFromRight,
   UIViewAnimationTransitionCurlUp,
   UIViewAnimationTransitionCurlDown.

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

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];