UIModalTransitionStyleFlip Horizontal Animation Duration?

What is the default value (NSTimeInterval)durationfor UIModalTransitionStyleFlipHorizontalrelated -[UIViewController presentModalViewController:animated:]?

+5
source share
1 answer

If you ask what the default value for the duration is in the animation when you do not explicitly set it, the answer is provided in the frame 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 cannot set a value in a method call, it takes a quarter of a second to complete the animation.

+1
source

All Articles