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

How to make your keyboard work with UIWebview #1

Open
garudaonekh opened this issue Jan 18, 2013 · 2 comments
Open

How to make your keyboard work with UIWebview #1

garudaonekh opened this issue Jan 18, 2013 · 2 comments

Comments

@garudaonekh
Copy link

Hi,
thanks for your great control. But i need to make it work with UIWebview for editing Rich Text data.

Any suggestion is much appreciated.

Regards;

@ataranlen
Copy link

I looked at modifying PK/PMCustomKeyboard class method "-(void)setTextView:textView " to include:

else if ([textView isKindOfClass:[UIWebView class]])
[(UIWebView *)textView setInputView:self];

But a UIWebView doesn't have an method for setInputView. This is contrary to what the apple docs say:

"You are not limited to input views and input accessory views in framework-supplied text objects. Any class inheriting directly or indirectly from UIResponder (usually a custom view) can specify its own input view and input accessory view. The UIResponder class declares two properties for input views and input accessory views:"

And a UIWebView does inherit indirectly from UIResponder.

The more I look into it, the more I think this isn't possible to do.

@garudaonekh
Copy link
Author

Thanks for your effort! I am still finding a way to make it work for my language keyboard but no luck so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants