I need to close some resources I am using when the App is minimized by clicking on Home Button.
Attention, I don’t want to intercept the Home button, I know it is not allowed by Apple
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the delegate method
- (void)applicationDidEnterBackground:(UIApplication *)applicationwhich is in appdelegate class. Whenever user taps the home button, this method will be called. for more details, check apple documentation. You can useapplicationWillResignActive:in case you want to detect an incoming phone call or sms as well along with app minimizing.