-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling with IQKeyboardManager.sharedManager().enable doesn't work #829
Comments
Have you tried using the |
@alfonzm I want to say that if I turn off the library with Maybe it will be fixed when |
@pilot34 I'm in the same position as you. Have you found a work around? |
@pilot34 - @alfonzm I forked and made a couple of changes that is working great for my needs. Instead of a In my case I'm using KMKeys,a library of mine which subscribes to the same events. The text field is not part of a view controller there so, A quick solution is to just destroy it when I'm done and re-create before use.
Another idea would be simply hiding if visible then removing the observer. Either way I think something like this could be introduced without affecting the current API. |
good solution 👍
I removed IQKeyboardManager and implemented all keyboard staff manually... In my case it was easier then forking the lib. |
First thing is that there is a separate property to enable/disable keyboard toolbar. The second thing is that there was a workaround for handling the issue with textFieldDidBeginEditing, with master branch now I've fixed this issue. Third one is that I now added unregisterAllNotifications method to completely unregister for all notification at developer risk. |
👍 |
That's the best line for developers I think @pilot34. ha ha ha. |
Is destroy method removed? I want to enable keyboard manager only in 2 of the screen. Is that possible?
|
I use
IQKeyboardManager
only on one ViewController, I doIQKeyboardManager.sharedManager().enable = true
in viewWillAppear andIQKeyboardManager.sharedManager().enable = false
in viewWillDisappear.But on another screen
IQKeyboardManager
handles textFieldDidBeginEditing notifications and I have bugs related to #88Should it work so or is it a bug? In my opinion when you disabling IQKeyboardManager it should unsubscribe from all notifications and shouldn't work at all until it will be enabled later.
I attached small example project, when I enabling and disabling IQKeyboardManager, but it shows toolbar and handles notifications after disabling.
TestIQKeyboardManager.zip
The text was updated successfully, but these errors were encountered: