I'm able to determine the coordinates of a touch event on a UIImageView. I need to then convert these coordinates to the coordinates of the image being displayed - which should be different, since my image is much larger than the UIImageView and I'm scaling the image with AspectFit.
What's the best way to determine the image coordinates of a touch event given the view coordinates of a UIImageView?
Something like this should get you going.
Assuming the
UIImageView
is calledimageView
theUITouch
is calledtouch
and theUIImage
is calledimage
.