title: How to apply UITapGestureRecognizer on a specific label having some tag in objective c
body: <p>I have 4 labels in a loop and i want to apply <code>UITapGestureRecognizer</code> on each label individually to perform some action how can i got this stuff if i want to apply gestures only on label with tag 2 any help please.</p>
  
  <pre><code>for(int i = 0 ; i &lt; 4; i++){
    label = [[UILabel alloc] initWithFrame:rect1];
      label.tag = LABEL_TAG+i;
  
      label.textAlignment = NSTextAlignmentCenter;
      label.backgroundColor = [UIColor grayColor];
      label.textColor = [UIColor whiteColor];
      label.font = [UIFont fontWithName:@"Verdana-Bold" size:17.0];
      label.text = @"someText";
      [label sizeToFit];
       UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gotTapped:)];
      [self viewWithTag:LABEL_TAG+2 addGestureRecognizer:tap];
  </code></pre>