Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

有没有点击当前某一条弹幕 暂停当前这条弹幕的方法呢 #4

Open
lyc59621 opened this issue Nov 15, 2018 · 3 comments

Comments

@lyc59621
Copy link

No description provided.

@w1531724247
Copy link
Member

你可以参考 OCBarrageRenderView类中的pause和resume方法来暂停和重新移动 某个cell

@lyc59621
Copy link
Author

好的,我试试看

@lyc59621
Copy link
Author

发现一个问题,当前试图如果有多个手势的话,就算弹幕这个试图在最顶层,OCBarrageRenderView里面的- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event 这个方法 会不走, 但是改成-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event 就会走 建议把cellTouchedAction 相关的实现放到 touchesBegan 里面,这样的话会接收到当前点击事件

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

No branches or pull requests

2 participants