Disable the iPhone auto screen-lock by API
August 14th, 2008If you are developing iPhone applications you might run into a situation where your application is “closed” by the iPhone’s automatic screen lock, which kicks in after a few minutes, according to the settings by the user. This of course happens when you have no interaction like tapping the screen from the user.
To disable the automatic screen lock you have to add the following line of code to the applicationDidFinishLaunching method of your app delegate.
application.idleTimerDisabled = TRUE;
