UIEventSubtype缺少元素 [英] UIEventSubtype missing elements
问题描述
枚举UIEventSubtype(iOS UIKit框架)包含事件,例如播放,暂停,下一个,搜索等.但是,iPod Access协议还包含许多其他事件,例如选择,向上,向下和向后(例如,将iPod与clickwheel一起使用) ). iOS上的iPod应用程序可以接收其他事件并做出相应的响应(在播放列表中向上/向下/向后移动选择),但是开发人员应用程序似乎无权访问这些控件.
The enum UIEventSubtype (iOS UIKit Framework) contains events such as play, pause, next, seek, etc. However, the iPod Access protocol contains numerous other events, such as select, up, down and back (think iPod with clickwheel). The iPod app on iOS can receive these other events and respond accordingly (move selection up/down/back in playlists), but developer apps don't have seem access to these controls.
除了我自己打开/dev/tty.iap
端口(或向Apple提交错误报告并等待)以外,还有谁知道在iOS应用中接收这些其他事件的方法(越狱)吗?也许有一个我想要的私有框架?我查看了IAP框架,但没有发现任何有趣的东西.
Does anyone know a way to receive these additional events in an iOS app (for jailbreak), other than opening the /dev/tty.iap
port myself (or filing a bug report with Apple and waiting)? Perhaps there's a private framework that has what I'm looking for? I looked in the IAP framework but didn't see anything interesting.
推荐答案
@Victor Ronin有一个正确的主意,在私有框架iPodUI
中,我发现了一个类IUAccessoryEventHandler
,其中包含类似
@Victor Ronin had the right idea, in the Private Framework iPodUI
I found a class IUAccessoryEventHandler
containing methods like
- (void)handleDownArrowEvent;
- (void)handleUpArrowEvent
- (void)handleSelectEvent
当我用Theos调整钩住它们并插入日志记录详细信息时,我能够看到这些方法是在外部设备发送命令时被调用的方法.
When I hooked into them with a Theos tweak and inserted logging details, I was able to see that these methods were the ones being called when an external device was sending the commands.
Update: Unfortunately, the iPodUI
framework were only available in iOS 5 and 6, according to the iPhone Wiki. Not sure if or where these methods are still available.
这篇关于UIEventSubtype缺少元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!