UIModalTransitionStyleFlipHorizontal动画持续时间是多少?

5

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


NSTimeInterval 是一个 double (typedef),用于指定动画应该持续的秒数。除此之外,我不确定你在问什么。 - titaniumdecoy
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.

所以,由于您无法在方法调用中设置值,因此执行动画应该需要四分之一秒的时间。


谢谢。我实际上认为,凭眼判断,UIModalTransitionStyleFlipHorizontal 更像是 0.75 - ma11hew28
我同意。我很惊讶在头文件中找到这个。我想知道它是否将3个动画链接在一起以获得最终效果。 - Chip Coons

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接