开发者

How to get the auto-lock setting from general settings on the iPhone?

开发者 https://www.devze.com 2022-12-24 04:33 出处:网络
Any chance? I want to know if it is s开发者_C百科et from \"1 - 5 minutes\" or set to \"never\". Thank you!Apple won\'t let you directly access system settings like that. If you are trying to prevent

Any chance?

I want to know if it is s开发者_C百科et from "1 - 5 minutes" or set to "never".

Thank you!


Apple won't let you directly access system settings like that. If you are trying to prevent the screen from locking, you can always do something like this:

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

As far as I know, that is the only thing that you can do to interact with the auto-lock.

0

精彩评论

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

关注公众号