简体   繁体   English

检测并按住iOS键盘键

[英]Detect tap and hold on iOS Keyboard Keys

I'd like a custom method to be fired when I tap an hold a given key on the keyboard of the iPhone. 我想在按住iPhone键盘上的给定键时触发自定义方法。 It would also need to override the alternate character pop up. 它还需要覆盖弹出的备用字符。

Where should I start with this? 我应该从哪里开始呢? I haven't tried anything too hackey in iOS yet 我还没有在iOS中尝试过任何技巧

it's not possible in non-jailbroken iOS. 在非越狱的iOS中是不可能的。 Also, it may not be a good idea, as this only makes sense on QWERTY keyboard. 同样,这可能不是一个好主意,因为这仅在QWERTY键盘上才有意义。 For example Japanese iPhone keyboard would be impossible to use without tap to hold and Chinese keyboard has drawing area instead of keys. 例如,日语的iPhone键盘如果不轻按就无法使用,而中文键盘则具有绘图区域而不是按键。 – porneL Jul 20 at 12:53 – porneL 7月20日12:53

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM