Tuesday, July 5, 2011

How to prevent the screen from sleeping

Learned how to prevent the screen from sleeping from Nick's SpaceBubble code, and his comment about AngryBirds is quite funny...



// Prevent the screen from sleeping!  Important!!  (AngryBirds doesn't do this btw...annoying)
[application setIdleTimerDisabled:YES];

0 comments:

Post a Comment