我正在使用IQKeyboardManager pod,用于我的
swift 4.0项目.
IQKeyboardManager.sharedManager().enable = true
pod更新后,上面的代码无法正常工作.
解决方法
以下是您的问题的答案:
Type ‘IQKeyboardManager’ has no member ‘sharedManager’ by
hackiftekhar
自IQKeyboardManagerSwift版本6.0.0起,sharedManager()已被shared替换
对于pod’IQKeyboardManagerSwift’或pod’IQKeyboardManagerSwift’,’6.0.0′,试试这个:
IQKeyboardManager.shared.enable = true
Swift Demo code by IQKeyboardManager
对于pod’IQKeyboardManagerSwift’,’5.0.0′,试试这个
IQKeyboardManager.sharedManager().enable = true