keeping the game awake

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View previous topic View next topic Go down

keeping the game awake

Post  zzajin on Wed Oct 29, 2008 10:31 pm

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

View user profile

Back to top Go down

Re: keeping the game awake

Post  sio2interactive on Wed Oct 29, 2008 11:46 pm

heuuuuuuu this thing do what exactly?

sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: keeping the game awake

Post  zzajin on Thu Oct 30, 2008 2:10 am

It keeps the screen from dimming. After 30 secs of being idle, accelerometer not included, the screen will dim.

Code:

[ [UIApplication sharedApplication] setIdleTimerDisabled:NO ];




Will turn it back on.

zzajin

Posts: 81
Join date: 2008-10-14

View user profile

Back to top Go down

Re: keeping the game awake

Post  sio2interactive on Thu Oct 30, 2008 2:34 am

Allright, tks for the tip man, I include it inside template & tutorials

sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top


This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Permissions of this forum:
You cannot reply to topics in this forum