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