Reputation: 113
I definitely need some clarification on when exactly viewDidAppear/viewDidDisappear methods are supposed to be called...
Thank you in advance!
Upvotes: 1
Views: 4016
Reputation: 1685
There is also:
(also an app delegate method):
- (void)applicationDidEnterBackground:(UIApplication *)application
Upvotes: 0
Reputation: 33048
They are not called because they don't disappear and reappear unless you tell them to disappear. Your whole application is suspended. You need to listen to the app delegates applicationDidBecomeActive:
and applicationWillResignActive:
messages if you want to know if your app got suspended or gets reactivated. You can also register for the notifications UIApplicationDidBecomeActiveNotification
and UIApplicationWillResignActiveNotification
.
Yes, you have to propagate the viewDidAppear: messages to your subviews manually. This is working as designed.
Upvotes: 3