OCBarrage icon indicating copy to clipboard operation
OCBarrage copied to clipboard

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

Open lyc59621 opened this issue 5 years ago • 3 comments

lyc59621 avatar Nov 15 '18 07:11 lyc59621

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

w1531724247 avatar Nov 15 '18 08:11 w1531724247

好的,我试试看

lyc59621 avatar Nov 15 '18 08:11 lyc59621

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

lyc59621 avatar Nov 16 '18 07:11 lyc59621