Prevent iphone going to sleep mode

by Deepak Dhakal 30. January 2012 07:17

use one line of code

[UIApplication sharedApplication].idleTimerDisabled=YES'

Note: This will leave the screen's background light on, (after the user pressed the sleep button,) which will drain the battery.

Tags:

Powered by BlogEngine.NET 1.5.0.7 - Old School Theme by n3o Web Designers