ApplicationDidBecomeActive is not called at all

I use an operator NSLog

to figure out when it is called -applicationDidBecomeActive:

, but it seems like it never gets called. Here is the code:

- (void)applicationDidBecomeActive:(UIApplication *)application {
      NSLog(@"Some message");
}

      

The method -viewDidLoad

seems to be executed the first time the application is launched, but it is -applicationDidBecomeActive:

never called. I hit the home button and reactivate the app a few times, but I still don't get any messages from -applicationDidBecomeActive:

.

Please, help!

+3


source to share


1 answer


Did you put this code in your application delegation file?



+8


source







All Articles