keeping the game awake
2 posters
keeping the game awake
Another bit of code for applicationDidFinishLaunching: in templateAppDelegate you might want to add.
- Code:
//Keep the app awake
[ [UIApplication sharedApplication] setIdleTimerDisabled:YES ];
zzajin- Posts : 81
Join date : 2008-10-14
Re: keeping the game awake
It keeps the screen from dimming. After 30 secs of being idle, accelerometer not included, the screen will dim.
Will turn it back on.
- Code:
[ [UIApplication sharedApplication] setIdleTimerDisabled:NO ];
Will turn it back on.
zzajin- Posts : 81
Join date : 2008-10-14

» Game AI: Lua or IPO?
» how to make a new game
» Hello & Some (Payed) Help For My Game
» Helicopter Game
» How to control the game fps?
» how to make a new game
» Hello & Some (Payed) Help For My Game
» Helicopter Game
» How to control the game fps?
Permissions in this forum:
You cannot reply to topics in this forum
|
|