UIView animation warning
Asked Answered
A

1

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?

Acreinch answered 12/4, 2013 at 9:47 Comment(0)
V
19

You should be using UIViewAnimationOptionCurveEaseIn instead.

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

Vulgus answered 12/4, 2013 at 9:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.