![]() |
|
Sleep mode - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html) +--- Thread: Sleep mode (/thread-1064.html) |
Sleep mode - kendric - Jul 2, 2009 11:04 AM I noticed the iphone goes to sleep fairly quickly after you stop touching the screen during my game play. Is this normal? It was probably just a minute or 2 at the most. Sleep mode - EvolPenguin - Jul 2, 2009 11:14 AM You can change how long it takes your iPhone to fall asleep/lock in the settings. If you want it only for your game, check the documentation for UIApplication's idleTimerDisabled property. I believe you'd want to set it to yes if you don't want the screen to lock. Oh, fine, I'll just post it here .Code: idleTimerDisabledSleep mode - kendric - Jul 2, 2009 12:18 PM Ok I guess ill leave it as user configurable. I don't want to turn it right off. Thanks for the info. |