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
UIViewAnimationCurveto different enumeration typeUIViewAnimationTransition
So please suggest to me how to resolve this problem in iOS 5.0.
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];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With