gpt4 book ai didi

ios - 如何展开UIView或在键盘上方显示UIView

转载 作者:行者123 更新时间:2023-11-28 19:03:27 25 4
gpt4 key购买 nike

我有一个 UIView,其中有一个 UIScrollView,6 个 UITextField 有 2 个 UILabel。当我想向 UITextfield 写一些东西时,它很低,我遇到了这个问题:

enter image description here

键盘隐藏了 UITextfields。当我设置更大尺寸的 UIScrollView 时,没有任何反应。我该如何解决这个问题?

最佳答案

TPKeyboardAvoiding 库在这里可能会有帮助。

https://github.com/michaeltyson/TPKeyboardAvoiding

关于ios - 如何展开UIView或在键盘上方显示UIView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22711770/

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