ios - 是否有任何通用的解决方案可以在屏幕上的键盘上方滚动 UITextView 和 UITextField

标签 ios iphone uitextfield uitextview

当键盘出现在屏幕上时,如何在 UITableView 或 UIViewController 中滚动 UITextField、UITextview。

最佳答案

我正在使用 IQKeyboardManager .通常,只需将 [IQKeyBoardManager installKeyboardManager]; 添加到 viewDidLoad 方法即可。

关于ios - 是否有任何通用的解决方案可以在屏幕上的键盘上方滚动 UITextView 和 UITextField,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21476246/

相关文章:

iphone - 如何从数组中获取 url 并在表格 View 中显示图像

html - 部署后响应式设计在 iPhone 上不起作用

iphone - 如何将焦点设置到 iPhone 中的下一个 uitextfield?

ios - 自定义 UITableViewCell 中的 UITextFields 文本在滚动时出现在其他单元格中

订阅和耗材产品的 iOS 应用内购买

ios - 模态呈现的 UIPopoverController 在 iOS 5 中不起作用

ios - 不要在水平紧凑的环境中折叠 UISplitViewController

ios - 来自数组的 UIImage

iOS10:当 secureTextEntry 时,UITextfield 因长时间输入而挂起

android - 托管在 https 协议(protocol) Web 应用程序上的移动应用程序的 REST API 会很慢吗?