title: Using a UITapGestureRecognizer to make keyboard hides, it doesn't work when I touch inside a UIButton
body: <p>I have declared in my header file this:</p>
  
  <pre><code>UITapGestureRecognizer* tap;
  </code></pre>
  
  <p>And on <code>viewDidLoad</code>:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
      tap = [[UITapGestureRecognizer alloc] initWithTarget:self
                                                    action:@selector(hideKeyboard)];
      tap.enabled = NO;
      [self.view addGestureRecognizer:tap];
  }
  </code></pre>
  
  <p>I've added <code>UITextFieldDelegate</code>, and added this:</p>
  
  <pre><code>- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
  {
      tap.enabled = YES;
  
      return YES;
  }
  </code></pre>
  
  <p>If I touches anywhere outside the keyboard, it disappears, but if I touch in a <code>UIButton</code> it doesn't disappear.</p>
  
  <p><strong>Do you know why?</strong></p>