views:

52

answers:

1

Is there a way to perform operations during the install phase of an iPhone application? I think this would be the most ideal time to perform tasks such as populating data stores (using core data). Or is there a more convenient way to:

  1. pre-populate data
  2. perform post-install tasks
+1  A: 

I don't think there is such a way, but you can do it by setting a boolean variable which is true only when the app is run for the first time and at that time you can pre populate the required data.

Madhup
This would be the most viable method, most applications that I've installed on my iPhone tend to start out with an 'empty' shell, and then populate with data when you start them up for the first time.
djhworld
http://stackoverflow.com/questions/308832/iphone-the-quickest-easiest-way-to-detect-first-launch
Nippysaurus