Which method and function is called first when any iOS application start ?
I suppose its
int main(int argc, char *argv[])
in main.m
file
But for practical purposes I think you usually need to implement some of the UIApplicationDelegate's methods, depending on situation:
application:didFinishLaunchingWithOptions:
applicationDidBecomeActive:
applicationWillEnterForeground:
If A View starts up, then it's:
- (void)viewDidLoad {}
If an app starts up it's:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
or
- (void)applicationWillEnterForeground:(UIApplication *)application {
I think you'l be better of using the ViewDidLoad Method.
I hope i helped!
actually:
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions{}
comes before:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With