Blog
Know me more?

Prevent your iPhone app from entering into Sleep/Standby mode

I’m not quite sure why it’s so easy than I ever think of. But it is!

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

It just disables the Idle Timer of iPhone OS for my application.

Sweet! :)


Seree -

2 Comments


  1. erwin
    Dec 24, 2009

    where should i enter it? thanks.


  2. Seree
    Dec 31, 2009

    Hi erwin,

    You can enter it in the application’s delegate. :)

    Thanks!

Leave a Reply