IQKeyboard Manager has no member sharedmanager error iOS swift

Problem:

I had integrated IQkeyboardManager in my Cocoapods and i tried to add the below code in my appdelegate but it shows error.


IQKeyboardManager.sharedManager().enable = true


Solution:

In swift 4 the above code will not works.Try the below code it will works perfectly.


IQKeyboardManager.shared.enable = true

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift