title: Disable touch events while processing
body: <p>I have a button which should not be clicked by user, when some processing is going on [shown using UIActivityIndicatorView].</p>
  
  <p>For this when the processing starts i call [[UIApplication sharedapplication] beginIgnoringInteractionEvents];</p>
  
  <p>and when processing ends i call [[UIApplication sharedApplication] endIgnoringInteractionEvents];</p>
  
  <p>If i click the button during processing, touch event does not get called, but it gets called as soon as the processing stops. </p>
  
  <p>Why is this happening?</p>