Prevent screen from dimming during game
My game is controlled solely using the accelerometer, so without any touches occurring, the screen dims after a few minutes of gameplay (as described here: http://forums.macrumors.com/showthread.php?t=532241). I suppose I could synthesize a touch event every minute or so, but perhaps there's an easier way. Any ideas on how to stop this from occurring? Thanks in advance!
Look at UIApplication's setIdleTimerDisabled method.
AnotherJake Wrote:Look at UIApplication's setIdleTimerDisabled method.
Thanks for the response. I was just coming back to post that I had found the answer. Here's the helpful link:
P.S. Thanks for the GBMusicTrack library as well!
Always glad to help
Possibly Related Threads...
|Prevent 3rd party lib from messing up gl||kendric||6||5,265||
Sep 15, 2009 06:56 PM
Last Post: kendric
|How to prevent my app from closing the user's currently playing music?||AdrianM||4||5,901||
Aug 5, 2009 03:21 AM
Last Post: AdrianM
|Prevent iPhone SnapShot?||Graphic Ace||5||4,412||
Mar 29, 2009 08:49 AM
Last Post: Graphic Ace