This is going to show how much of an iphone newbie I am, but I'm stuck.
I am trying to detect pinch movement to scale an image.
But my handler is getting the movements all mixed up.
my handler looks like this:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{}
I then touch with two fingers. If i move both fingers at the same time it mostly works because touches contains 2 points and I can get the distance and measure the pinch.
But if I hold one finger still and move the other, then touches contains only one point. And I can no longer get a distance. I tried storing the distance I got last time, but I don't know which finger to update with the new incoming touches.
What am I missing? How do I separate touch events consistently? I was expecting a touchID or something of that nature so I could track each finger touch. But I can't find it.
Josh