Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap.
Thanks in advance,
Tate
Could someone please tell me how to make an image appear when the user
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.
UIViewis a subclass ofUIResponder, which has the following methods that might help:-touchesBegan:withEvent:,-touchesEnded:withEvent:,-touchesCancelled:withEvent:and-touchesMoved:withEvent:.The first parameter of each of those is an
NSSetofUITouchobjects.UITouchhas a-locationInView:instance method which should yield the position of the tap in your view.