-
Notifications
You must be signed in to change notification settings - Fork 290
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
iOS 10 handleInputModeList issue #107
Comments
I haven't had much chance to try using it. |
Well, I think it is because handleInputModeList(from:with) is a method of UIInputViewController but keyView is KeyboardKey Class and KeyboardKey Class is UIControl (which inherits from UIView). Or in other words, they are different branches of UIKit, but they don't inherit the same functions. Typically when handleInputModeList is used, it is used directly in the UIInputControlView class declaration. For example, one project I looked at had Though, since I am a novice at programming, the problem could be something else. :P |
@AaronFW I think the main reason is because @archagon rewriting events on forwardingview and handleInputModeList(from:with:) is something that it doesn |
@pirrate you are right, I needed to change the way ForwardingView and KeyboardKey track touch. That allow me to do this in keyView.addTarget(self, action: #selector(handleInputModeList(from:with:)), for: .allTouchEvents)
keyView.originalViewTouch = true the |
@mromanuk do you mind shedding some light on how to implement this? Some code snippets maybe? Appreciated. |
I think I figure it out, thanks for the tip @mromanuk |
@ifanchu @mromanuk @archagon @AaronFW could you please let me know this issue is fixed or not? because I also having issue with |
@ifanchu Can you share a code sample ? |
Here is my full solution to this issue, don't know if it's the best approach. thanks for @mromanuk sharing the tips. in KeyboardKey.swift, add
in KeyboardViewController.swift,
and delete in ForwardingView.swift,
with
|
I am trying to implement handleInputModeList that was added in iOS10. This is my code
But it doesn
t work. I tried to create new button and add same target there and it worked normally. But it doesn
t work with keyViews. Any idea?The text was updated successfully, but these errors were encountered: