gpt4 book ai didi

ios - 如果从设备中的键盘设置关闭文本预测,UITextView inputAccessoryView 不会显示

转载 作者:行者123 更新时间:2023-11-29 11:45:31 25 4
gpt4 key购买 nike

我正在开发一个聊天应用程序,其中 TextView 放置在 Viewcontroller 中,就像 Whatsapp 一样。TextView 在上面移动,连同键盘就像 whatsapp 一样。

我需要在键盘和 TextView 之间显示一个包含一些按钮的工具栏。它是通过创建一个工具栏并将其分配给 UITEXTVIEW 的 INPUTACCESSORYVIEW 来完成的。除非用户如下更改设备设置,否则它会完美运行。

设置 —> 通用 —> 键盘 —> 预测(关闭)。

如上所述更改键盘设置后。在 inputAccessoryView 的位置出现一个空白区域。

我找不到与此问题类似的问题。

我们将不胜感激任何形式的帮助。

最佳答案

Often while developing an app, We ran into an issues where the iPhone keyboard slide up and cover the UITextField/UITextView. IQKeyboardManager allows you to prevent issues of the keyboard sliding up and cover UITextField/UITextView without needing you to enter any code and no additional setup required. To use IQKeyboardManager you simply need to add source files to your project.

所以我推荐你使用IQKeyboardManager

关于ios - 如果从设备中的键盘设置关闭文本预测,UITextView inputAccessoryView 不会显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44114647/

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