UITapGestureRecognizer not working
<p>UITapGestureRecognizer is not working for me, I wonder if anyone can help.</p>

<p>Here is my view definition:</p>

<pre><code>@interface MainDisplayView : UIView &lt;UIGestureRecognizerDelegate&gt;
</code></pre>

<p>In the implementation, I have this in a method which is definitely being called:</p>

<pre><code>UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(goToPrevious:)];
[tapRecognizer setDelegate:self];
[tapRecognizer setNumberOfTapsRequired:1];
[tapRecognizer setNumberOfTouchesRequired:1];
[myView addGestureRecognizer:tapRecognizer];
</code></pre>

<p>as well as this method:</p>

<pre><code>- (void)goToPrevious:(UITapGestureRecognizer*)recognizer {
    NSLog(@"GO TO PREVIOUS");
}
</code></pre>

<p>I am testing in the simulator, and clicking in "myView" - but nothing happens.
Thanks a lot!</p>

<p>Edited the code formatting.</p>
