title: UITextField and tap gesture in leftView
body: <p>I've an icon on leftView of textField and I want to add tap gesture to it. This is my code : </p>
  
  <pre><code>if (!textField.leftView){
      UIImageView *infoImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 18)];
      infoImage.image = [UIImage imageNamed:@"info"];
      infoImage.contentMode = UIViewContentModeCenter;
      textField.leftView = infoImage;
      textField.leftViewMode = UITextFieldViewModeAlways;
      UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showErrorMessage:)];
      tapRecognizer.numberOfTapsRequired = 1;
      [infoImage addGestureRecognizer:tapRecognizer];
  }
  </code></pre>
  
  <p>The problem when user click on the image on leftview nothing is happend and the <code>showErrorMessage</code> is not called .</p>
  
  <p><strong>Update</strong>
  The tap issue was solved by enabling userInteraction on the infoImage. <br />
  But now I'm getting <code>[UITapGestureRecognizer tag]: unrecognized selector sent to instance</code> at second line of my  Show <code>errorMessage</code> :</p>
  
  <pre><code>-(void)showErrorMessage:(id)sender{
  UIImageView *icon = (UIImageView *)sender;
  NSString *key = [@(icon.tag) stringValue];
  NSLog(@"%@", [_errorDictionary objectForKey:key]);
  </code></pre>
  
  <p>}</p>