IQKeyboardManager 一些坑

1.禁用
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
//MMP的要两句同时写才能完全禁止,否则通知中心监控到的键盘高度还是包含IQKeyboardManager的inputAccessoryView
IQKeyboardManager.shared().isEnabled = false
IQKeyboardManager.shared().isEnableAutoToolbar = false
}

参考
https://www.jianshu.com/p/46973f993824

你可能感兴趣的:(IQKeyboardManager 一些坑)