Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I improve the startup time of my app?

Why iPhone app's splash screen takes more time for loading?

Can we set the time for few second only? it takes almost one minute at the moment.

like image 495
Pinku Avatar asked Dec 22 '22 11:12

Pinku


1 Answers

Well the splash screen is shown as long as your app is starting, meaning not returning from the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method.

If you are doing a lot of thing in this method then you should spilt up that code to do then at an other point in the start up of your app.

You should keep the startup time of your app as short as possible, start maintance code in separate thread, try lazy loading for every thing else.

like image 120
rckoenes Avatar answered Jan 08 '23 16:01

rckoenes