FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

keeping the game awake

2 posters

Go down

keeping the game awake Empty keeping the game awake

Post  zzajin 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

Back to top Go down

keeping the game awake Empty Re: keeping the game awake

Post  sio2interactive Wed Oct 29, 2008 5:46 pm

heuuuuuuu this thing do what exactly?
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

keeping the game awake Empty Re: keeping the game awake

Post  zzajin 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

Back to top Go down

keeping the game awake Empty Re: keeping the game awake

Post  sio2interactive Wed Oct 29, 2008 8:34 pm

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

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

http://sio2interactive.com

Back to top Go down

keeping the game awake Empty Re: keeping the game awake

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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