如何加快iOS转换和搜寻的速度? [英] How do I speed up iOS transitions and segues?

查看:71
本文介绍了如何加快iOS转换和搜寻的速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在整个应用程序范围内设置属性,以使iOS应用程序中的转换速度提高一倍?

Is it possible to set a property application-wide to double the speed of transitions within an iOS app?

推荐答案

应用范围内?

尝试在视图控制器的内容视图的衬层上设置speed属性. speed = 2将是双倍速度.您可能可以在viewDidLoad方法中为所有视图控制器进行设置.

Try setting the speed property on the backing layer for your view controller's content views. speed=2 would be double-speed. You could probably set this in the viewDidLoad method for all your view controllers.

您也许还可以创建UIWindow的自定义子类,并使该窗口对象在诸如makeKeyWindow之类的瓶颈方法中将其视图层上的speed属性设置为2.0.您需要使所有应用程序的UIWindow对象都使用自定义类.我必须进行一些挖掘才能弄清楚该怎么做.

You might also be able to create a custom subclass of UIWindow, and have that window object set the speed property on it's view layer to 2.0 in a bottleneck method like makeKeyWindow. You'd need to make all your app's UIWindow objects use your custom class. I'd have to do some digging to figure out how to do that.

这篇关于如何加快iOS转换和搜寻的速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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