ios - 怎么解决手势冲突
大家讲道理
大家讲道理 2017-04-18 09:40:21
0
1
766

我想在uiscrollView上面添加俩个手势,一个手势可以拖动uiscrollView上面tableView的cell,一个手势可以拖动tableView,但是在实际操作中,发现这俩个手势有冲突,且只能执行一个,请问这个问题怎么解决,给个大致思路就好,不甚感激

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
PHPzhong

Are the two gestures you mentioned different or the same? Your question is not specific, it is best to show the code so that you can see the problem.
If there are two same gestures, there will be a problem, because they are both in the same window, and there can only be one responder after the event is passed in;
If you just want to drag, you can use a long press gesture on one , one uses the tap gesture to distinguish events.
If you don’t understand, ask me to write a demo for you

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template