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

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift