Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不确定这一点,但 UIPanGestureRecognizer 在添加到该视图时是否优先于 UIView 的触摸处理方法?也就是说,我是否仍会收到-touchesMoved:来自该视图的方法调用,还是只会从手势识别器获得回调?
-touchesMoved:
我相信它优先于处理回调的触摸。如果您已经实现它,touhesCancelled它会在将其提供给之前调用。UIPanGestureRecognizer
touhesCancelled
UIPanGestureRecognizer