If I touch the screen with UIImage displayed, i can get a coordinate of (screen.x, screen.y) in screen coordinate. And how can I get the UIImage coordinate (image.x, image.y) from this coordinate ? the UIImage is in a UIImageView.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So far, I havent found any property or something to get the coordinate of displayed UIImage directly. Yet after some calculation (using the aspect radio of original UIImage), the distance between the origin of displayed UIImage and UIImageView.frame could be easily find out. I worried about the error, but it turns out the error is very little, and I hardly can tell.