UIViewKeyboardAvoiding 0.1.2× 测试已测试✗ Lang语言 Obj-CObjective C许可 MIT 发布日期最后发布2015年12月由 Renato Matos 维护。安装指南×UIViewKeyboardAvoiding 安装指南您需要在 Podfile 中添加类似于以下代码target 'MyApp' do pod 'UIViewKeyboardAvoiding', '~> 0.1' end然后在终端中运行 pod install,或者从 CocoaPods.app 中运行。为了测试运行,运行以下命令pod try UIViewKeyboardAvoiding查看 PodspecGitHub 仓库在 CocoaPods.org 上的页面UIViewKeyboardAvoiding 0.1.2由Renato Matosrmatos_renatosarrol/UIViewKeyboardAvoidingGitHub 仓库 一种简单的方法,使您的 UITextField 总是可见,当键盘出现时(第一个响应者)将 UIView 向上移动 Pod Podfile pod "UIViewKeyboardAvoiding" 终端 pod install 使用方法 第一步是设置 UIView 自定义类,如下所示 然后,只需要将您的 UIView 设置为 UITextField 的代理即可