title: How to detect tap on uiview with lots of controls?
body: <p>My problem is about tap detection.</p>
  
  <p>I have a uiviewcontroller and there are some controls on uiview (labels, buttons, tableview, imageview, etc..)</p>
  
  <p>When I tap the uibutton I display a small uiview (200x150), if the user taps the uibuttons in smallview I hide the smallview.</p>
  
  <p>But I can't hide the uiview if the user taps the background.<br>
  I tried this code..</p>
  
  <pre><code>-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
      //NSLog(@"Touches began.");
      [self hideShareView];
  }
  </code></pre>
  
  <p>It doesn't work if I tap the another button in the uiviewcontrols view.</p>
  
  <p>I just want my uiviewcontrol's uiview to react first.<br>
  I think its about firstResponder but I dont know how to set it first.</p>
  
  <p>edit: i want it to work like a uiPopover in ipad.</p>