简体   繁体   中英

iOS Launch Screen Animation Time

It seems like the fade animation between the launch screen and my first view is really slow.

I don't think it used to be like that. Is there a way to control the speed of that transitional animation?

I looked at some apps on my phone and the launch screen doesn't fade as slowly as mine. What things could I have done to affect that?

(No I don't have slow animations turned on, only the fade animation is slow)

In WWDC 2012 video iOS App Performance: Responsiveness they enumerate a whole list of issues that have impact on the app startup time, ranging from attaching to unnecessary frameworks, optional linking to frameworks that you really could make required, the use of static initializers, overly complicated initial scenes, too much information stored in preferences, etc.

That video covers a range of topics, like the above, which impact startup time. In the demonstration, they show how one might benchmark the startup time. Unfortunately, in my experience, there's a good chance that you might not be able to do anything to fix this issue (eg you need certain features and therefore need certain frameworks), but it's still an illuminating video and it might give you some ideas of things you can try to alleviate the start-up performance issues.

If your app splash screen show more time, so please check following things in your app. 1. AppDelegate.m in didFinishLaunchingWithOptions method have you called any heavy method which takes more time for finish task if yes then change that method location, basically in appDelegate class don't write any heavy methods. 2. first view of your app. check viewDidLoad() method, if you call many method or any heavy method from here then your launch image will show still your control not come out from viewDidLoad method, so if you want call any methods at view launch time then call them from viewWillAppear or viewDidAppear method (in viewDidAppear method don't call any UI related methods)

我从未弄清楚这里发生了什么,但是第二天,当我启动xCode和模拟器时,它又回到了正常的加载时间。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM