以编程方式锁定iOS 7中的iPhone屏幕 [英] Programmatically lock iPhone screen in iOS 7
本文介绍了以编程方式锁定iOS 7中的iPhone屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我们可以从 GraphicsServices.framework
调用 GSEventLockDevice();
来锁定 iOS 6
及旧版本,如 H2CO3 此处所述。但遗憾的是,它不适用于 iOS 7
。
I know that we can call GSEventLockDevice ();
from the GraphicsServices.framework
to lock the screen in iOS 6
and older version, as explained by H2CO3 Here. But unfortunately it's not working in iOS 7
.
我的问题:
如何以编程方式锁定iPhone屏幕 iOS 7
?
注意: 我不希望这个用于Appstore。
推荐答案
这在iOS7中是不可能的。你需要特殊的权利,所以在越狱之前你运气不好
Hi it's not possible in iOS7. You need special entitlement so until there will be a jailbreak you are out of luck
这篇关于以编程方式锁定iOS 7中的iPhone屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文