I need to handle home button pressing in my app.
When user presses home button in my DetailedViewController I need to trigger method that will [self.navigationController popViewControllerAnimated:YES].
Help me please.
How could it be done?
I need to handle home button pressing in my app. When user presses home
Share
Check out
- (void)applicationWillResignActive:(UIApplication *)applicationmethod in you app delegate. It will catch the event. And then your can handle it as you need. For example, post notification using default notification center and get it in class where you need to do something.