isIdleTimerDisabled not working in iOS 12

怎甘沉沦 提交于 2019-12-10 14:45:19

问题


Prior to iOS 12 using isIdleTimerDisabled has stopped our app from going to sleep, but ever since iOS 12 this no longer seems to work.

Is this a bug with iOS 12 or am I doing something wrong here?


回答1:


This is for sure a bug and apparently Apple fixed it is iOS 12.1.1. You will see a new option under the Guided Access called Mirror Display Auto-Lock. Turn this on. Then go to Settings -> Display and Brightness -> Auto-Lock -> Never. This should fix it.

Here is a link to the most active thread about this issue on the Apple Forums.



来源:https://stackoverflow.com/questions/52486597/isidletimerdisabled-not-working-in-ios-12

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!