2011-06-20 55 views
5

(NSTimeInterval)duration对于UIModalTransitionStyleFlipHorizontal的默认值是什么,这与-[UIViewController presentModalViewController:animated:]有关?UIModalTransitionStyleFlipHorizo​​ntal animation duration?

+0

[NSTimeInterval](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html)是一个double(typedef),它指定了数字动画应该持续的秒数。除此之外,我不确定你在问什么。 – titaniumdecoy

回答

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. 

所以,既然你不能在方法调用中设置值,它应该花费四分之一秒来执行动画。

+0

谢谢。我实际上认为,通过眼睛来判断,它更像'UIModalTransitionStyleFlipHorizo​​ntal'的'0.75'。 – ma11hew28

+0

我同意。我很惊讶地发现这在头上。我想知道是否将3个动画链接在一起以获得最终效果。 –

相关问题