Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIView animation warning

I am using following code

[UIView animateWithDuration:1.0
                      delay:0.05
                    options:UIViewAnimationCurveEaseIn
                 animations:^{

                                  //Code

                 } completion:^(BOOL finished) {}];

I am getting the following warning

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

How to solve this?

like image 970
Hassy Avatar asked Apr 12 '13 09:04

Hassy


1 Answers

You should be using UIViewAnimationOptionCurveEaseIn instead.

UIViewAnimationCurveEaseIn is part of a different enum used in other methods.

like image 128
Mike Weller Avatar answered Sep 17 '22 15:09

Mike Weller