title: iOS: Tap Recognizer not consistent
body: <p>I have a scenario like shown below
  <img src="https://i.stack.imgur.com/fpdGu.png" alt="Scenario"></p>
  
  <ol>
  <li><p>Right now, I am showing only 1 view with label 8. But I am planning to add 3 more such views to the HolderView.</p></li>
  <li><p>The SmallerView/s are created from other Nib files.</p></li>
  </ol>
  
  <p>I did this code for adding Tap Recognizer for ViewController's view</p>
  
  <pre><code>UITapGestureRecognizer *tapRecognizer=[[UITapGestureRecognizer alloc]initWithTarget:self                                                                         action:@selector(tapRecognized2:)];
  [tapRecognizer setDelegate:self];
  [self.view addGestureRecognizer:tapRecognizer];
  </code></pre>
  
  <p>Code for adding Tap Recognizer to the smaller views
  I added smaller views to the HolderView. And assigned Tag IDs to them. After that,</p>
  
  <pre><code>for (SmallerView *view in HolderView.subviews) {
      UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapRecognized:)];
      [recognizer setDelegate:self];
  NSLog(@"Added gesture to the view with tag: %ld",view.tag);
  
      [view addGestureRecognizer:recognizer];
  }
  </code></pre>
  
  <p>3.
      - (void)tapRecognized:(UITapGestureRecognizer *)paramSender
      {
          NSLog(@"tapped on %ld", paramSender.view.tag);
      }</p>
  
  <pre><code>- (void)tapRecognized2:(UITapGestureRecognizer *)paramSender
  {
      NSLog(@"VC view");
  }
  </code></pre>
  
  <ol start="4">
  <li>I have enabled UserInteraction (both in code and Inspector) for all the views and UILabels on smaller views too.</li>
  </ol>
  
  <p>The problem now is...
  <strong><em>The smaller view's Tap recognisers are not really working consistently. Sometimes they print the output. All at suddenly it prints the ViewController's recogniser's output.
  Please help</em></strong></p>
  
  <p><strong><em>UPDATE:</em></strong>
  Below is my View diagram.
  Green Border:  (In UIView's initWithFrame)d         </p>
  
  <pre><code>self.layer.borderColor = [UIColor greenColor].CGColor;
  </code></pre>
  
  <p>Red Border:</p>
  
  <pre><code>    MyTile *tile = [[[NSBundle mainBundle] loadNibNamed:@"View" owner:self options:nil] objectAtIndex:0];
  self.myLabel.layer.borderColor=[UIColor redColor].CGColor;
  </code></pre>
  
  <p><strong>Why that Green Border is coming only of that size? Shouldn't that be full square?</strong>
  <strong><em>And, the gesture works only when I tap on the green area.  Why?</em></strong> 
  <img src="https://i.stack.imgur.com/On55d.png" alt="enter image description here"></p>