ios - is there any method to know if the app run for the first time -


i need know if app run first time setup default settings music on/off fx volume equal 0.5 ...

so there predefined way or need make manually?

you can put in - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions:

if (![[nsuserdefaults standarduserdefaults] boolforkey:@"applicationrunbefore"]) {     [[nsuserdefaults standarduserdefaults] setbool:yes forkey:@"applicationrunbefore"];     [[nsuserdefaults standarduserdefaults] synchronize];     // application running first time -     ... } 

hope helps...


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -