keeping the game awake

View previous topic View next topic Go down

keeping the game awake

Post  zzajin on Wed Oct 29, 2008 4: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 5:46 pm

heuuuuuuu this thing do what exactly?
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: keeping the game awake

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

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 Wed Oct 29, 2008 8:34 pm

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

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: keeping the game awake

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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