iOS:如何通过物理键盘响应上/下/左/右箭头事件? [英] iOS: how to respond to up/down/left/right arrow event from physical keyboard?

查看:211
本文介绍了iOS:如何通过物理键盘响应上/下/左/右箭头事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过物理键盘,我的意思是连接到iOS设备或iPad键盘基座的蓝牙无线键盘.

By physical keyboard I mean the bluetooth wireless keyboard connecting to the iOS device, or the iPad keyboard Dock.

推荐答案

据我所知,尚无正式批准的方法.最好的办法是重写-[UIApplication sendEvent:]并查看发生的事件.

To my knowledge there is no officially sanctioned way to do this. The best you can do is override -[UIApplication sendEvent:] and take a look at the events coming through.

这篇关于iOS:如何通过物理键盘响应上/下/左/右箭头事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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