[Html] I recently made a project with the need to zoom in the Click image. I learned how to add the click event Method to the subclass of UIView. I would like to share with you: first, set UIView (or its subclass) to interactive: [html] imageview. userInteractionEnabled = YES; Add the tap gesture: [html] // tap gesture UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc] initWithTarget: self action: @ selector add the gesture to the view [html] view addGestureRecognizer: tapGesture]. The default value is click trigger event: set the number of fingers: [html] [tapGesture setNumberOfTapsRequired: 2]. run the trigger method: [html]-(void) event :( UITapGestureRecognizer *) gesture {[html] NSLog (@ "standalone"); obtain which View triggers this method: [html] gesture. view; OK. This is the basic way to use gestures. I hope it will be helpful to you. [html]