Simple UITapGestureRecognizer. IBAction not firing
ios, iphone, objective-c, storyboard, uigesturerecognizer
Solution
It seems from your screenshot that the gesture recognizer is added to the view controller, not the view. You just need to drag the gesture recognizer onto the view, and it should add it correctly.
Problem
I have a `UITapGestureRecognizer` linked up to an `IBAction`. I am simply trying to confirm the IBAction method call. For the `UITapGestureRecognizer`, in storyboard I have a reference outlet collection to gestureRecognizers in my View and sent action `tapGesture:` linked up to my ViewController. .h code: ``` - (IBAction)tapGesture:(UITapGestureRecognizer *)sender; ``` .m code: ``` - (IBAction)tapGesture:(UITapGestureRecognizer *)sender { NSLog(@"Tapped"); } ``` What am I missing? Why is `tapGesture:` not firing?