In applications like Foursquare when I click the Home button the application goes to background. Then when I click on its icon, it loads back the content on the screen.
When I send my app to background and then I recall it back, it doesn't load back the content to the screen. I have entered my code in the viewDidAppear
method but it is not executed.
How is it possible to load the application content when it becomes active?
You need to respond to
- (void)applicationDidBecomeActive:(UIApplication *)application
or- (void)applicationWillEnterForeground:(UIApplication *)application
or the equivalentUIApplication
notifications. TheUIViewController
lifecycle calls likeviewDidAppear
aren't triggered by app lifecycle transitions.