iphone - How to call a bool type function with several arguments objective c -


- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     if ([[nsuserdefaults standarduserdefaults] boolforkey:@"haslaunchedonce"])     {         // app launched         return no;     }     else     {         [[nsuserdefaults standarduserdefaults] setbool:yes forkey:@"haslaunchedonce"];         [[nsuserdefaults standarduserdefaults] synchronize];         // first launch ever         return  yes;     } } 

how call function in method of same class in.

this delegate method, , you never call explicitly.

it called application finished launching.


Comments