I am developing an app in which what i want is when a user clicks on an image in an image view
An Action should be fired(like when a button is clicked).
I don’t want button image. I just want an image view and action on it.
Kindly help.
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.
According to your comment, if you want to know about image’s index then you can do this by
tagproperty of image view. Assign your image view’stagproperty as per your need and get thetagon Touch event.For example :
Add
UITapGestureRecognizerUse its delegate method :
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)eventHope it helps you…