开发者

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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜