2012-05-29 7 views

答えて

20

代わりにanimateWithDuration:delay:options:animations:completion:を使用してこの設定を変更できます。オプションパラメータにUIViewAnimationOptionマスクを送信します。これらはあなたが興味を持っているオプションを以下のとおりです。

UIViewAnimationOptionCurveEaseInOut 
UIViewAnimationOptionCurveEaseIn 
UIViewAnimationOptionCurveEaseOut 
UIViewAnimationOptionCurveLinear 

ドキュメントはUIViewAnimationOptionCurveEaseInOutがデフォルト値であることを述べています。

は詳細についてはドキュメントを参照してください:http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.htmlあなたが使用する必要があります

+0

おかげで、! – Fitzy

9

、あなたの問題を解決することができますたくさん

[UIView animateWithDuration:duration delay:0 options:UIViewAnimationOptionCurveLinear animations:^{ 
     //code with animation 
    } completion:^(BOOL finished) { 
     //code for completion 
    }]; 
関連する問題