5

与 相关的(NSTimeInterval)durationfor的默认值是多少?UIModalTransitionStyleFlipHorizontal-[UIViewController presentModalViewController:animated:]

4

1 回答 1

1

如果您在未明确设置动画时询问持续时间的默认值是什么,则答案在框架标题中提供:

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

因此,由于您无法在方法调用上设置值,因此执行动画需要 1/4 秒。

于 2011-06-21T21:56:21.060 回答