-
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
Swift - How to disable IQKeyboardManager in a specific UIViewController #252
Comments
Use 'disableInViewControllerClass' method to disable it for a viewController. |
It seems does not work |
In Swift, there is no method to get Class, Am I right ? |
You should pass class name directly. For example your class name is 'Person' then you should pass 'Person' in the method. |
there is no such method like 'disableInViewControllerClass' |
|
Thanks @rjcristy. @raj-android-iOS, they are replaced by properties so now you have to use them like mentioned by @rjcristy. |
I believe you have to do |
disabledDistanceHandlingClasses |
Need to use disabledDistanceHandlingClasses. For example IQKeyboardManager.sharedManager().disabledDistanceHandlingClasses.append(YourViewController.self) |
Swift 4: |
@rjcristy thank you sooo much .... thank you so much. |
|
Thanks Bro... |
Nothing works =(
|
For Swift 4 and IQKeyboardManager Version 5.00:
|
Write this code in a particular controller inside of view did load method
|
nothing works... the input keeps scrolling up, even though there is enough space for the keyboard, and I have placed everything mentioned here to disable it. |
I added in my VC didLoad method and in this vc the view still scroll up when keyboard is showing ... |
|
`
Then setup like this in your TargetViewController.swift
Build and Run!! Already tested in 2022` |
Dear fiiends,
I am using IQKeyboardManager for my Swift Project (iOS 8.4).
Now I want IQKeyboardManager does not affect a specific UIViewController in my projects. How to make it ?
Thanks in advance,
Thu
The text was updated successfully, but these errors were encountered: