Search code examples
iphoneuiviewdelaypreload

Preload UIView To Minimize Delay While Running Iphone App


I have an iphone app that has one view that needs to fetch a lot of data off of a variety of internet sites. Therefore, the amount of time required for it to load is unacceptable. I was wondering if there is any way to load the view during the 'applicationDidFinishLaunching' method so the delay is at the startup of the app instead of midway through navigation.

Thank you very much!


Solution

  • You want to load the view as quickly as possible, and then launch a background thread or asynch request to pull the data down.

    Making your application sleep during initial load isn't advisable. I believe SpringBoard will terminate any application which takes longer than 30 seconds to finish loading.

    It's a bad user experience to have the app do something without visible feedback to the user (animated UIActivityView for example)