UIView animation warning

I am using the following code

[UIView animateWithDuration:1.0 delay:0.05 options:UIViewAnimationCurveEaseIn animations:^{ //Code } completion:^(BOOL finished) {}]; 

I get the following warning

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

How to solve this?

+7
source share
1 answer

Instead, you should use UIViewAnimationOptionCurveEaseIn .

UIViewAnimationCurveEaseIn is part of another enumeration used in other methods.

+17
source

All Articles