How to make the phone open when the application is open?

    1 answer 1

    Not to be blocked at all, in appDelegate write

    [UIApplication sharedApplication].idleTimerDisabled = YES; 

    Or the same code, somewhere in the application, if you need to disable the lock is not permanent, but under some circumstances