Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为特定的空闲时间间隔实现自动锁定。
如何以编程方式增加 iphone 自动锁定空闲时间功能?
谢谢
您无法增加或减少自动锁定空闲时间功能,它由用户从设置菜单中控制。但是,您可以使用以下代码启用或禁用它;
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];