Skip to content

Disabling IQKeyboardManager in specific View Controller. #117

Closed

Description

@rhenz

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.

Activity

  1. rhenz commented on Nov 13, 2014

    @rhenz
    Author

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

  2. hackiftekhar commented on Nov 13, 2014

    @hackiftekhar
    Owner

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

  3. rhenz commented on Nov 13, 2014

    @rhenz
    Author

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

  4. mythodeia commented on Nov 13, 2014

    @mythodeia

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

  5. self-assigned this
    on Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions