增加xcode上的启动图像时间 [英] increase launch image time on xcode
问题描述
对于iOS设备,在设置自定义启动时间图像后,在模拟器上测试时,它仍然保持大约4秒,但在iphone上测试时,它会在不到1秒后隐藏!假设这取决于处理器,但如何修改可视化时间?谢谢。
for iOS devices, after set a custom launch time image, when tested on simulator it remains about 4s but when tested on iphone it is hide after less than 1s! Assumed that depends on processor but how to modify that visualization time?? Thanks.
推荐答案
更好的选择是在你的 appDidFinishLaunching中放一个5秒的睡眠:
方法。
Better option would be to put a sleep of 5 seconds in your appDidFinishLaunching:
method.
appDidFinishLaunching:
方法开头的陈述。
sleep(5);
希望这可以帮到你。
注意: - 您可能希望将时间从5秒增加到适合您的任何时间。谢谢
Note:- You may want to increase the time from 5 seconds to whatever time that is suitable for you. Thanks
编辑:您可能需要包含 #import< unistd.h>
声明。
You may need to include #import <unistd.h>
statement.
这篇关于增加xcode上的启动图像时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!