title: Detect Tap on UIImageView within UITableViewCell
body: <p>I have a custom complex UITableViewCell where there are many views. I have an UIImageView within it which is visible for a specific condition. When it's visible , </p>
  
  <ol>
  <li><p>I have to perform some Action when user Taps that UIImageView.</p></li>
  <li><p>I know I have to trigger a selector for this task. But I also want to pass a value to that Method (please See -(void)onTapContactAdd :(id) sender : (NSString*) uid below) that will be called as a Action of Tap on my UIImageView in UITableViewCell I am talking about. It's because , using that passed value , the called method will do it's job.</p></li>
  </ol>
  
  <p>Here is what I have tried so far.</p>
  
  <pre><code>cell.AddContactImage.hidden = NO ;
  cell.imageView.userInteractionEnabled = YES;
  
  UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapContactAdd::)];
  [tap setNumberOfTouchesRequired:1];
  [tap setNumberOfTapsRequired:1];
  [tap setDelegate:self];
  [cell.AddContactImage addGestureRecognizer:tap];
  
  
  
  -(void)onTapContactAdd :(id) sender : (NSString*) uid
  {
      NSLog(@"Tapped");
  // Do something with uid from parameter
  }
  </code></pre>
  
  <p>This method is not called when I tap. I have added  in my header file.</p>
  
  <p>Thanks for your help in advance.</p>