您可以在视图上添加滑动手势,也可以实现触摸代理。 – touchesMoved:withEvent: – touchesEnded:withEvent: – touchesCancelled:withEvent: 为了实现您的需求