isIdleTimerDisabled在iOS 12中不起作用 [英] isIdleTimerDisabled not working in iOS 12

查看:440
本文介绍了isIdleTimerDisabled在iOS 12中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用isIdleTimerDisabled的iOS 12之前,我们的应用无法进入睡眠状态,但是自从iOS 12以来,这似乎不再起作用.

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.

这是iOS 12的错误,还是我在这里做错了什么?

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

推荐答案

这肯定是一个错误,Apple显然已将其修复为iOS 12.1.1.您将在Guided Access下看到一个名为Mirror Display Auto-Lock的新选项.打开这个.然后转到Settings-> Display and Brightness-> Auto-Lock-> Never.这应该可以解决.

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.

在Apple论坛上,有一个链接到最活跃的线程.

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

这篇关于isIdleTimerDisabled在iOS 12中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆