Edward Hasted
Edward Hasted

Reputation: 3433

iOS Best Practice Preloading Data for App

I have an App that works from a Tab Bar Controller. But before I get to that menu I need to preload and run some database checks. What is the best way to do this as it only needs to run once and not every time you return to the Home Page. This needs to sit between the Launch Images and the Home Page.

What's the best way to do this?

Upvotes: 0

Views: 127

Answers (1)

bilobatum
bilobatum

Reputation: 8918

How about doing it in the app delegate's application:willFinishLaunchingWithOptions: method? That's where I initialize the Core Data stack.

You could execute the check on a background thread, so that your views continue to load.

Upvotes: 2

Related Questions