What is the default value of (NSTimeInterval)duration
for UIModalTransitionStyleFlipHorizontal
, which is related to -[UIViewController presentModalViewController:animated:]
?
Asked
Active
Viewed 1,634 times
5

ma11hew28
- 121,420
- 116
- 450
- 651
-
[NSTimeInterval](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html) is a double (typedef) which specifies the number of seconds the animation should last. Other than that I'm not sure what you're asking. – titaniumdecoy Jun 21 '11 at 04:07
1 Answers
1
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.

Chip Coons
- 3,201
- 1
- 24
- 16
-
Thanks. I actually think, judging by eye, that it's more like `0.75` for `UIModalTransitionStyleFlipHorizontal`. – ma11hew28 Jun 22 '11 at 01:27
-
I agree. I was surprised to find this in the header. I'm wondering if it is chaining 3 animations together to get the final effect. – Chip Coons Jun 22 '11 at 01:34