iosanimationuikitdurationuimodaltransitionstyle

UIModalTransitionStyleFlipHorizontal animation duration?


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


Solution

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