Tariq
Tariq

Reputation: 9979

Application idle timeout - Want to implement autolock for a specific idle interval

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

How can i increase iphone autolock idle time feature programmatically ?

Thanks

Upvotes: 2

Views: 1458

Answers (1)

Jeroen de Leeuw
Jeroen de Leeuw

Reputation: 907

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];

Upvotes: 2

Related Questions