草庐IT

singletouch

全部标签

objective-c - SingleTouch-View 中的第二根手指触发 touchesMoved

我想为child创建一个小型绘图应用程序。我不想实现多点触控绘图应用程序,因此我将绘图View的multipleTouchEnabled设置为false。绘图到目前为止工作正常,但是当child用第二根手指触摸View时,View的touchesMoved-eventhandler被调用:-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{UITouch*touch=[[eventallTouches]anyObject];CGPointtouchPoint=[touchlocationInView:self];//