Dima Cheverda Dima Cheverda - 17 days ago 5
iOS Question

IQKeyboardManager not disabling

Trying to disable IQKeyboardManager for particular ViewController or for whole app not working.

In AppDelegate following code:

[[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO];
[[IQKeyboardManager sharedManager] setEnable:NO];
[[IQKeyboardManager sharedManager] disableToolbarInViewControllerClass:[TCChatViewController class]];
[[IQKeyboardManager sharedManager] disableInViewControllerClass:[TCChatViewController class]];


Also trying to disable in
viewWillAppear:
:

[[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO];
[[IQKeyboardManager sharedManager] setEnable:NO];

Answer

The issue was in 'Class implemented in both', because library was included to main app and framework. So I guess I was setting library preferences to one copy, but library was reading preferences from another copy and mine was ignored.

Comments