所以我在进行自定义手势识别时遇到了麻烦。我需要监视所有当前的触摸,但是touchesBegan、touchesEnded、touchesMoved和touchesCancelled都只给我他们正在监视的触摸。我需要对所有触摸进行计算,无论它们是否受到监控。我做了一些研究,也看到了自己监控触摸的建议,但对我来说并不顺利。这是我的代码:-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{/*Calledwhenatouchbegins*/[myTouchesunionSet:touches];}-(void)touche