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

If support UIView? #455

Closed
wy19901227 opened this Issue Mar 17, 2016 · 8 comments

Comments

Projects
None yet
3 participants
@wy19901227

wy19901227 commented Mar 17, 2016

HI, If I Write a textView base on UIView,So,When MyTextView becomFirstRespond,How Can I make it can be Know By IQKeyBadrdManager?

@hackiftekhar

This comment has been minimized.

Owner

hackiftekhar commented Mar 17, 2016

If you are writing your own textView using UIView and CoreText framework then I need to check if it will work with IQKeyboardManager. I'm not 100% sure.

@wy19901227

This comment has been minimized.

wy19901227 commented Mar 17, 2016

I did check ,IQ will not identify it as a textView

@hackiftekhar

This comment has been minimized.

Owner

hackiftekhar commented Mar 17, 2016

Then you can share a demo project with me and I'll find-out a solution for you.

@wy19901227

This comment has been minimized.

wy19901227 commented Mar 17, 2016

@wy19901227

This comment has been minimized.

wy19901227 commented Mar 17, 2016

Thank you.

@hackiftekhar

This comment has been minimized.

Owner

hackiftekhar commented Mar 18, 2016

I checked the demo and I found two reasons with YYTextView.

  1. YYTextView is firing YYTextViewTextDid.... notifications while IQKeyboardManager is listening only for UITextViewTextDid.... notifications. That's why IQKeyboardManager is unable to detect YYTextView.

  2. When I replaced YYTextViewTextDid.... notifications with UITextViewTextDid.... notifications, then I got an issue with the toolbar with Done button. Done button doesn't appear at first time. So probably we need to 'reloadInputViews' manually.

Let me know what you thought about this.

@abellee

This comment has been minimized.

abellee commented May 1, 2016

but the YYTextView seems can not be the first responder,

so everytime I do click the YYTextView, the keyboard will rise again and again even though it has showed up!

@hackiftekhar hackiftekhar reopened this May 3, 2016

@hackiftekhar

This comment has been minimized.

Owner

hackiftekhar commented May 16, 2016

It's working for me with your demo with some changes. Please check.
YYTextViewDemo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment