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

当键盘弹出,长按文本,不会显示menuVC #23

Open
Coder-Miao opened this issue Nov 3, 2021 · 0 comments
Open

当键盘弹出,长按文本,不会显示menuVC #23

Coder-Miao opened this issue Nov 3, 2021 · 0 comments

Comments

@Coder-Miao
Copy link

其实就是键盘和UIMenuController的并存问题:
1.需要增加一个自定义的TextView,支持设置nextResponder
2.CJLabel需要增加一个长按的回调或者通知,让业务层去监听当前谁即将成为Responder, 业务层去设置TextView的nextResponder
3.自定义的TextView需要监听UIMenuController的生命周期,取消nextResponder

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

1 participant