Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 6.1 and Xcode 4.6, enumaration warning UIViewAnimationCurveEaseOut

i have installed the new iOS 6.1 and Xcode 4.6, and now i have some warning of enumeration in my code, i can't resolve this:

[UIView animateWithDuration:0.4                           delay:0.0                         options:UIViewAnimationCurveEaseOut                      animations:^{                       } completion:^(BOOL finished) {}]; 

and this is the warning:

Implicit conversion from enumeration type 'enum UIViewAnimationCurve' to different enumeration type 'UIViewAnimationOptions' (aka 'enum UIViewAnimationOptions') 

how i can solve this warning?

like image 603
Piero Avatar asked Jan 30 '13 22:01

Piero


2 Answers

You're using the wrong option value. Try UIViewAnimationOptionCurveEaseOut.

like image 136
Lily Ballard Avatar answered Sep 18 '22 15:09

Lily Ballard


Replace UIViewAnimationCurveEaseOut into UIViewAnimationOptionCurveEaseOut

Eg:

[UIView animateWithDuration:0.4                           delay:0.0                         UIViewAnimationOptionCurveEaseOut                      animations:^{                       } completion:^(BOOL finished) {}]; 
like image 43
Rajesh Loganathan Avatar answered Sep 20 '22 15:09

Rajesh Loganathan