views:

34

answers:

1

i want to implement auto lock for a specific idle time interval.

How can i increase iphone autolock idle time feature programmatically ?

Thanks

+1  A: 

You can't increase or decrease the autolock idle time feature, it is controlled by the user from the settings menu. However you can enable or disable it by using the following code;

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
Jeroen de Leeuw