我正在尝试让touchesEnded在一个手势后触发。我包含了一个代码片段,其中可以触发touchesBegan和touchesEnded。我用下面的代码得到了两个奇怪的行为。当我平移时,它打印开始并滑动结束。当我触摸Canvas时,我会收到一条开始消息和两条结束消息。我已经尝试删除touchesBegan以确保它不会与touchesEnded冲突,但行为是相同的。#import"C4WorkSpace.h"@implementationC4WorkSpace-(void)setup{[selfaddGesture:PANname:@"pan"action:@"bbb:"];[self