2011-06-20 17 views
5

UIModalTransitionStyleFlipHorizontalのデフォルト値は(NSTimeInterval)durationで、これは-[UIViewController presentModalViewController:animated:]に関連していますか?UIModalTransitionStyleFlip水平アニメーションの継続時間は?

+0

[NSTimeInterval](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html)は、数値を指定するdouble型(typedef)です。アニメーションの持続時間は数秒です。それ以外はあなたが何を求めているのか分かりません。 – titaniumdecoy

答えて

1

あなたが明示的に設定していないときの期間のデフォルト値は、アニメーション上にあるものを求めているならば、答えはフレームワークヘッダで提供されています。

* If the `duration' property of the animation is zero or negative it 
* is given the default duration, either the value of the 
* `animationDuration' transaction property or .25 seconds otherwise. 

ので、以来、メソッド呼び出しの値を設定することはできません。アニメーションを実行するには、4分の1かかります。

+0

ありがとうございます。目で判断すると、実際には 'UIModalTransitionStyleFlipHorizo​​ntal'の' 0.75'のように思えます。 – ma11hew28

+0

私は同意します。私はヘッダーでこれを見つけるのに驚いた。最終的な効果を得るために一緒に3つのアニメーションを連鎖しているのだろうかと思います。 –

関連する問題