8

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?

Dilip Manek
  • 9,095
  • 5
  • 44
  • 56
Hassy
  • 5,068
  • 5
  • 38
  • 63

1 Answers1

19

You should be using UIViewAnimationOptionCurveEaseIn instead.

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

Mike Weller
  • 45,401
  • 15
  • 131
  • 151