i want t开发者_运维知识库o implement auto lock for a specific idle time interval.
How can i increase iphone autolock idle time feature programmatically ?
Thanks
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];
精彩评论