UITapGestureRecognizer can implement with array of image? can it work same as single image?
how it work?
UITapGestureRecognizer can implement with array of image? can it work same as single image?
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.
It works on a single view. You will have to use a single recognizer per view.
You can however use the same target-action pair to handle all the gesture recognizers. If you are looking for the gesture to behave the same way for all the image views then this is the easiest thing to do. If the action must identify the view and handle it appropriately, you can use the
viewproperty to complete the appropriate action.If you are looking for how gesture recognizers work, read
this.