Reputation: 115
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
So please suggest to me how to resolve this problem in iOS 5.0.
Upvotes: 3
Views: 4169
Reputation: 1188
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];
Upvotes: 4