Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implicit conversion from enumeration type 'UIViewAnimationCurve' to different enumeration type 'UIViewAnimationTransition'

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.

like image 736
jaydev singh Avatar asked Dec 11 '25 12:12

jaydev singh


1 Answers

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];
like image 160
iMash Avatar answered Dec 14 '25 02:12

iMash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!