I am working with multitouch while writing, So basically what I am doing is, I am writing with hand support, because typically, its how user rights, I followed this link How
If I understood your problem correctly, you're having undesired strokes whenever the user uses multiple fingers on your canvas. Since you already have a self.trackingTouch, will it be reasonable to just ignore every other touch that is not self.trackingTouch?
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
if (self.trackingTouch)
{
// another touch is active so we ignore this one
return;
}
// ...the rest of your code
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = self.trackingTouch;
if (![touches containsObject:touch])
{
// updates to touches other than self.trackingTouch
return;
}
// ...process only self.trackingTouch in the rest of your code
}
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = self.trackingTouch;
if (![touches containsObject:touch])
{
// updates to touches other than self.trackingTouch
return;
}
// ...process only self.trackingTouch in the rest of your code
self.trackingTouch = nil;
}
-(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
{
// ...same as touchesEnded:withEvent:
}