As the title suggests, how can I detect when a user sees a UIViewController. This is slightly different from viewDidLoad()
and viewDidAppear()
, both of which are run only when the app is first launched. What I am looking for is something like viewDidAppear()
, but runs every time the view literally appears to the user (i.e. when the app is re-opened from the background or when the app is shown after the device is re-woken from sleep).
Thanks!