iPhone - phone goes to sleep even if idleTimerDisabled is YES
Posted
by lostInTransit
on Stack Overflow
See other posts from Stack Overflow
or by lostInTransit
Published on 2009-11-05T11:02:16Z
Indexed on
2010/03/20
2:31 UTC
Read the original article
Hit count: 553
iphone
|iphone-sdk
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
© Stack Overflow or respective owner