How to know when a UIViewController view is shown after being in the background?

In iOS4.2/iPhone4

  • Click icon to launch app (some view controllers view is displayed)
  • Click iPhone Home button (return to home screen)
  • double click Home button
  • Select previously launched app from the selection

Now I can see that my app delegate gets a message "applicationDidBecomeActive" when its selected after the last step, but how does my viewController (the one who's view is currently displayed) know?

viewDidLoad was already called, so that isn't called again. viewWillLoad is not called again.

Can't seem to figure it out. Reason I'm asking is I want to check to see if any Settings changes were made, but would like to do that in the view controller cause that's the thing that cares.

6
задан Fraggle 14 December 2010 в 20:23
поделиться