UIModalTransitionStyleFlipHorizo​​ntal动画时长? [英] UIModalTransitionStyleFlipHorizontal animation duration?

查看:180
本文介绍了UIModalTransitionStyleFlipHorizo​​ntal动画时长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是默认值(NSTimeInterval)病程 UIModalTransitionStyleFlipHorizo​​ntal ,这是关系到 - [UIViewController的presentModalViewController:动画:]


解决方案

如果你问时间的默认值是当你没有明确设置它的动画,答案是在框架头提供的:


  *如果该动画的持续时间`'属性是零或负数了
 *给定,默认的持续时间,任一值
 *`animationDuration交易属性或0.25秒其他。


所以,既然你不能设置方法调用的价值,应采取四分之一秒的执行动画。

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

解决方案

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.

这篇关于UIModalTransitionStyleFlipHorizo​​ntal动画时长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆