1

我一直在尝试使用 private-apis 来检测用户何时按下电源/唤醒按钮但没有成功。

我的调查把我带到了 GSEvent
( http://iphonedevwiki.net/index.php/GSEvent )

但是,此 api 在 iOS 8 上不再可用
https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks/GraphicsServices.framework

有没有人幸运地在 iOS 8 上检测到按钮事件

请注意:我对使用 UIApplicationDelegate 不感兴趣,只检测按钮按下

4

0 回答 0