I am writing an app that disables the idle timer. How do I re-enable it prior to app crashing out or user hitting the main exit button? This could be real bad by draining the battery otherwise.
Share
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.
You can reenable it in the
- (void)applicationWillResignActive:(UIApplication *)applicationmethod.You can use this:
[[UIApplication sharedApplication] setIdleTimerDisabled:NO]. Don’t forget to disable it again when your app becomes active.