在 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
.
我的问题:如何在 iOS 7
中以编程方式锁定 iPhone 屏幕?
My Question :
How to lock the iPhone Screen programmatically in 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屋!
查看全文