iPhone - phone goes to sleep even if idleTimerDisabled is YES
iphone
Solution
I set and un-set this property throughout my app using:
[UIApplication sharedApplication].idleTimerDisabled = YES;
Setting this where you're having trouble could fix it, though it might be a bit of a band-aid solution.
Problem
I am using this in my appdelegate's applicationDidFinishLaunching: method to make sure the iPhone doesn't go to sleep during the time the app is open ``` [application setIdleTimerDisabled:YES]; ``` It works great on all screens but on one of the screens the iPhone goes to sleep. I could not figure out how to reproduce this and it seems to happen at random times. Can someone please tell me how to handle this situation. Thanks