7

我使用下面的代碼的UIView動畫警告

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

            //Code 

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

我收到以下警告

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

如何解決這個問題?

回答

17

您應該改用UIViewAnimationOptionCurveEaseIn

UIViewAnimationCurveEaseIn是其他方法中使用的不同枚舉的一部分。

+0

謝謝soo爲我工作:) – Hassy