IQKeyboardManager has no sharedManager member

I am using the IQKeyboardManager module for my project with fast 4.0.

IQKeyboardManager.sharedManager().enable = true

after updating the pod, the above code does not work.

+4
source share
4 answers

Here is the answer to your question: Type 'IQKeyboardManager' has no member 'sharedManager' hackiftekhar

Since IQKeyboardManagerSwift version 6.0.0 has sharedManager()been replaced byshared

For the pod 'IQKeyboardManagerSwift' or the pod 'IQKeyboardManagerSwift', '6.0.0' , try the following:

IQKeyboardManager.shared.enable = true

: https://github.com/hackiftekhar/IQKeyboardManager/blob/master/IQKeyboardManagerSwift/IQKeyboardManager.swift

enter image description here


Swift - IQKeyboardManager

enter image description here


pod 'IQKeyboardManagerSwift', '5.0.0',

IQKeyboardManager.sharedManager().enable = true
+1
0

. swift4. install pod file.

pod 'IQKeyboardManager'

IQKeyboardManager AppDelegate

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    IQKeyboardManager.shared().isEnabled = true

    return true
}
0

API IQKeyboardManager Pod.

Pod → IQkeyboardManager .

enter image description here

0

Source: https://habr.com/ru/post/1696306/


All Articles