title: How to match beginIgnoringInteractionEvents before adding endIgnoringInteractionEvents
body: <p>I am using these two functions <code>[[UIApplication sharedApplication] beginIgnoringInteractionEvents];</code> and <code>[[UIApplication sharedApplication] endIgnoringInteractionEvents];</code> while I am downloading data from server.</p>
  
  <p>I am getting below error in my log.</p>
  
  <pre><code>-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
  </code></pre>
  
  <p>I tried to search on few links but can't find appropriate solution for this.</p>
  
  <p><a href="https://stackoverflow.com/questions/7379842/how-do-you-disable-touch-to-screen-without-using-beginignoringinteractionevents">How do you disable touch to screen without using beginIgnoringInteractionEvents?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3784971/what-is-uiapplication-beginignoringinteractionevents-overflow-ignoring">What is “-[UIApplication beginIgnoringInteractionEvents] overflow. Ignoring.”?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1697029/ignoring-ui-events-in-appkit">Ignoring UI Events in AppKit</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8707633/beginignoringinteractionevents-or-userinteractionenabled-no-not-working-as-exp">beginIgnoringInteractionEvents or userInteractionEnabled = NO not working as expected</a></p>