objective c - Inizialitation of plist file -


in app i've plist file of configuration, each viewcontroller, in viewdidload load data , write.

the problem is: how can create plist file in documets folder on first startup of application? think in viewdidload of first viewcontroller of app, maybe there better way?

why not in uiapplication delegate message - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions? in there, check see if file exists in documents directory. if doesn't, create it.


Comments