Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIModalTransitionStyleFlipHorizontal animation duration?

What is the default value of (NSTimeInterval)duration for UIModalTransitionStyleFlipHorizontal, which is related to -[UIViewController presentModalViewController:animated:]?

like image 653
ma11hew28 Avatar asked Nov 13 '22 21:11

ma11hew28


1 Answers

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.

like image 138
Chip Coons Avatar answered Dec 10 '22 18:12

Chip Coons