I make a test app and runs it on device. At frist launch everything works fine. Then I press home button to exit, then press the app icon. It seems that viewWillAppear is not called this time. In my understanding, viewWillAppear is called every time the view shows up on screen no matter it’s triggered by dismiss view controller or by pressing home button then relaunched.
Share
According to the documentation:
To get notified, when your application resumes you should use:
- (void)applicationDidBecomeActive:(UIApplication *)applicationThis method is implemented in your AppDelegate.m