Thanks for your reply. What I was really looking for was a calculation for translInView, which is different than locationInView. I solved this with the following code:
CGPoint location = [sender locationInView:self.view]; CGPoint translation; translation.x = location.x - viewStartLocation.x; translation.y = location.y - viewStartLocation.y;
This requires me to track the starting location, which I did not need to do with recognizing gestures, but it seems to work well. The rest of my code is centered around translation, not location, so I tried not to rewrite this other code just for the sake of consistency.
Thanks again for the time to respond.
source share