【发布时间】:2011-11-14 22:49:32
【问题描述】:
我的应用中有以下视图层次结构:
-- UIScrollView (canCancelContentTouches is NO)
-- UIView #1 (UISwipeGestureRecognizer is bound to it to track horizontal swipes)
-- UIView #2 (touchesBegan/touchesMoved/touchesEnded are implemented here to allow
dragging this view inside its parent; implementation is very
straightforward and I'm NOT calling supermethods here).
当我开始拖动视图 #2 时,它有时会触发滑动手势识别器。我真的看不出这种模式,但这种情况经常发生。
有什么方法可以抑制拖动时的触摸处理吗?
【问题讨论】:
标签: iphone objective-c cocoa-touch uigesturerecognizer