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
看看这个:https://github.com/hackiftekhar/IQKeyboardManager/blob/master/IQKeyboardManagerSwift/IQKeyboardManager.swift
Swift Demo code by IQKeyboardManager
对于pod’IQKeyboardManagerSwift’,’5.0.0′,试试这个
IQKeyboardManager.sharedManager().enable = true总结
以上是内存溢出为你收集整理的ios – IQKeyboardManager没有成员sharedManager全部内容,希望文章能够帮你解决ios – IQKeyboardManager没有成员sharedManager所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)