I have a requirement that when application install on device then it will never show any screen and start a thread in background for 30 seconds. When complete that time then it will show a screen in application.
I mean to say that when we install an application on device then it show a Black Screen for a moment and read
applicationDidFinishLaunching
after that it will don’t show any screen. And in background we have start a thread for 30 seconds when that time period will complete then it will show a new view.
How do that? what is proper way to do that?
Thanks in advance
When your app installs on device as per my understanding there is no way your app can start a background thread. You app is not active in the first place.
Once your app is invoked by the user, then you can start a background thread & do what needs to be done. Best way to start background threads in iOS is blocks –
This block based threading is perfect as GCD takes care of evenly distributing your task in case of multi-core processors, queuing tasks, memory handling of threads etc. all of this is handled for you.