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! :)


Tagged with:
 

Facebook comments:

2 Responses to Prevent your iPhone app from entering into Sleep/Standby mode

  1. erwin says:

    where should i enter it? thanks.

  2. Seree says:

    Hi erwin,

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

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

reverse phone lookupTattoo DesignsSEO