Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经实现了UIKeyInput协议方法- (void)deleteBackward,但是当代码在 iPad 上运行并且我按下键盘上的删除按钮时,它不会执行该方法。
UIKeyInput
- (void)deleteBackward
此协议是否已禁用ipad?
ipad
刚刚也遇到了这个问题。看起来 iPad 不允许UIViews 简单地实现UIKeyInput,您必须实现UITextInput才能使自定义视图使键盘出现在 iPad OS 上。
UIView
UITextInput