title: On iOS, a button Action is not invoked if the main view has a UITapGestureRecognizer. How to make it work?
body: <p>In a brand new iOS project using Xcode 4.3.2, if a button has an Action created using the Interface Builder, and it prints out <code>"button is tapped on"</code>, then all works fine.</p>
  
  <p>However, when the main view is added a <code>UITapGestureRecognizer</code> for a single tap, then even if the button is tapped on, the main view is thought to be tapped on but the button Action won't be called.</p>
  
  <p>Is there a way to make this work?   (is it recommended to not use Button Action but use a UITapGestureRecognizer for the button?  But if it was a slider, then we do need the Action)</p>