IOS lightweight keyboard manager, use simple and powerful, the keyboard will never block input controls. iOS轻量级的键盘管理器,使用简单功能强大,键盘再也不会挡住输入控件
使用CocoaPods:
【Objective-c】 pod 'WHC_KeyboardManager_oc'
【Swift5.0+】 pod 'WHC_KeyboardManager'
override func viewDidLoad() {
super.viewDidLoad()
/*******只需要在要处理键盘的界面创建WHC_KeyboardManager对象即可无需任何其他设置*******/
WHC_KeyboardManager.share.addMonitorViewController(self)
}
override func viewDidLoad() {
super.viewDidLoad()
/*******只需要在要处理键盘的界面创建WHC_KeyboardManager对象即可无需任何其他设置*******/
let configuration = WHC_KeyboardManager.share.addMonitorViewController(self)
/// 不要键盘头
configuration.enableHeader = false
/***configuration里面有丰富实用的自定义配置具体可参看代码***/
}
All source code is licensed under the MIT License.