gpt4 book ai didi

ios - UIKeyInput 在 iPad 上不可用?

转载 作者:行者123 更新时间:2023-12-01 15:50:35 27 4
gpt4 key购买 nike

我已经实现了 UIKeyInput 协议(protocol)方法 - (void)deleteBackward 但是当代码在 iPad 上运行并且我按下键盘上的删除按钮时它没有执行方法。

此协议(protocol)是否在 ipad 上禁用?

最佳答案

刚刚也遇到了这个问题。看起来 iPad 不允许 UIView 简单地实现 UIKeyInput,您必须实现 UITextInput 以便使键盘出现在 iPad OS 上的自定义 View 。

关于ios - UIKeyInput 在 iPad 上不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41032887/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com