views:

60

answers:

2

hello. someone could tell me please why when launch my app in the second time (after pressing the home button) the method viewDidLoad is not being called.

thanx.

+2  A: 

On iOS 4 apps are no longer exited when pressing the home button. They are moved out of RAM, paused and then continued when you re-enter them, not launched again.

Max Seelemann
A: 

In iOS4 there is:

  • (void)applicationDidBecomeActive:(UIApplication *)application { }

Which is called when the application becomes active (out of background) you could call things from here that need to happen when you open the app.

Thanks James

jodm
There is also - (void)applicationWillEnterForeground:(UIApplication *)application- (void)applicationDidEnterBackground:(UIApplication *)application
jodm