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

Disable IQKeyboard in specific view controller using swift #391

Closed
karthikasdas opened this issue Dec 20, 2015 · 8 comments
Closed

Disable IQKeyboard in specific view controller using swift #391

karthikasdas opened this issue Dec 20, 2015 · 8 comments
Labels

Comments

@karthikasdas
Copy link

Hi @hackiftekhar ,

First of all Thank you very much for this library.

I have an issue of disabling IQKeyboard in particular view controller, I am using swift and used the following code:- IQKeyboardManager.sharedManager().disableInViewControllerClass(CircleTableViewController)
where CircleTableViewController is the class in which IQKeyboard is to be disabled. But IQKeyboard is still showing in the CircleTableViewController. Please help!

Thanks,
Karthika

@hackiftekhar
Copy link
Owner

What is showing in CircleTableViewController, the toolbar one?

@karthikasdas
Copy link
Author

Yes the tool bar one.

On Sunday, 20 December 2015, Mohd Iftekhar Qurashi notifications@github.com
wrote:

What is showing in CircleTableViewController, the toolbar one?


Reply to this email directly or view it on GitHub
#391 (comment)
.

Sent from Gmail Mobile

@hackiftekhar
Copy link
Owner

There is a separate class level method to disable toolbar.

@raj-engineer
Copy link

there is no such method "disableInViewControllerClass"

@warisappify
Copy link

Kindly use following method instead

IQKeyboardManager.sharedManager().disabledToolbarClasses = [ViewControllerA.self, ViewControllerB.self]

@hackiftekhar
Copy link
Owner

Thanks @warisappify

@PrajeetShrestha
Copy link

PrajeetShrestha commented Sep 26, 2017

This is not working

I tried IQKeyboardManager.sharedManager().disabledToolbarClasses.append(LoginViewController.self)

and

    IQKeyboardManager.sharedManager().disabledToolbarClasses = [LoginViewController.self] both in AppDelegate.

@hackiftekhar
Copy link
Owner

What exact behaviour you need @PrajeetShrestha ?

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

5 participants