The situation is :
- App is on background
- The user click on icon app
- App open and show the view controller where we were before apps entered background last time.
I'd like to know which view controller is about to be presented. I'm looking for something like :
- (void)applicationDidBecomeActive:(UIApplication *)application {
if ([self.window.viewControllerOnScreen isKindOfClass:[HomeViewController class]]) {
//do sthg
}
}
Because in case, it's the home view controller (embed in a navigation controller and i use storyboards) i would perform some reload method.