开发者

UIModalTransitionStyleFlipHorizontal animation duration?

开发者 https://www.devze.com 2023-03-14 10:30 出处:网络
What is the default value of (NSTimeInterval)duration for UIM开发者_JS百科odalTransitionStyleFlipHorizontal, which is related to -[UIViewController presentModalViewController:animated:]?If you are ask

What is the default value of (NSTimeInterval)duration for UIM开发者_JS百科odalTransitionStyleFlipHorizontal, which is related to -[UIViewController presentModalViewController:animated:]?


If you are asking what the default value of the duration is on an animation when you do not explicitly set it, the answer is provided in the framework headers:

 * 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.

So, since you can't set the value on the method call, it should take a quarter second to execute the animation.

0

精彩评论

暂无评论...
验证码 换一张
取 消