keeping the game awake
Page 1 of 1 • Share •
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
heuuuuuuu this thing do what exactly?

sio2interactive- Posts: 1524
Join date: 2008-08-26
Age: 30
Location: Shanghai

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
Re: keeping the game awake
Allright, tks for the tip man, I include it inside template & tutorials

sio2interactive- Posts: 1524
Join date: 2008-08-26
Age: 30
Location: Shanghai

Permissions of this forum:
You cannot reply to topics in this forum




