iPhone - phone goes to sleep even if idleTimerDisabled is YES
- by lostInTransit
Hi
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