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.


Powered by BlogEngine.NET
Original Design by Laptop Geek, Adapted by onesoft