Skip to content
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 IQKeyboardManager in specific View Controller. #117

Closed
rhenz opened this issue Nov 13, 2014 · 4 comments
Closed

Disabling IQKeyboardManager in specific View Controller. #117

rhenz opened this issue Nov 13, 2014 · 4 comments
Assignees
Labels

Comments

@rhenz
Copy link

rhenz commented Nov 13, 2014

Hi @hackiftekhar ,

I'm having a weird problem here.

The IQKeyboardManager doesn't seem to get turn off? No idea why.

What I did is import IQKeyboardManager. In viewDidAppear i have this:

_wasKeyboardManagerEnabled = [[IQKeyboardManager sharedManager] isEnabled];
[[IQKeyboardManager sharedManager] setEnable:NO];

Then in viewWillDisappear
[[IQKeyboardManager sharedManager] setEnable:_wasKeyboardManagerEnabled];

But upon testing the keyboardManager still exist in that viewController.

@rhenz
Copy link
Author

rhenz commented Nov 13, 2014

Sorry. It is working. I just thought the toolbar with next/previous should be removed also?

@rhenz rhenz closed this as completed Nov 13, 2014
@hackiftekhar
Copy link
Owner

If you wantto removetoolbar then you can use enableAutotoolbar property to set NO.

@rhenz
Copy link
Author

rhenz commented Nov 13, 2014

How @hackiftekhar ? Can't seem to find the method enableAutotoolbar.

@mythodeia
Copy link

@rhenz
can you try it like this:
[[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO];

@hackiftekhar hackiftekhar self-assigned this Jan 7, 2015
hackiftekhar added a commit that referenced this issue Mar 22, 2015
…139 and enabling toolbar previous/next for CustomView #154, #179.
hackiftekhar added a commit that referenced this issue Jul 12, 2016
…139 and enabling toolbar previous/next for CustomView #154, #179.

Former-commit-id: bda4c62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants