which delegate method will call while clicking device close button
On clicking device close button. Which method will call.
I launch the application and navig开发者_如何学Goated to other view controller. i displaying popOverViewController and closing the application. again relaunching application. its redirecting to home screen and displaying popOverviewController.
But I want to know when clicking the device close button which method will call?
So i can dismiss my popoverviewcontroller there.
Check the UIApplicationDelegate Protocol Reference. Probably you need - (void)applicationWillResignActive:(UIApplication *)application
.
Be sure to check the docs for your view controller's viewWillDisappear
etc also.
精彩评论