i would like to build a custom table view cell and put in him a imageview and when the user click the imageview to popup a view on the viewcontroller-and the view will know which cell the image was pressed.
thx
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.
Use
UITapGestureRecognizergesture to detect touches on any view inherited fromUIView.Use as below…..
Add Tap gesture
UITapGestureRecognizertomyImageViewview (type ofUIImageView).Implement
gestureTapEvent:method to receive the touch event.UPDATED:
you could access view with you attached the gesture using
viewproperty ofUIGestureRecognizer.So your gestureTapEvent: method should be like as below .