Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to match beginIgnoringInteractionEvents before adding endIgnoringInteractionEvents

Tags:

ios

I am using these two functions [[UIApplication sharedApplication] beginIgnoringInteractionEvents]; and [[UIApplication sharedApplication] endIgnoringInteractionEvents]; while I am downloading data from server.

I am getting below error in my log.

-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.

I tried to search on few links but can't find appropriate solution for this.

How do you disable touch to screen without using beginIgnoringInteractionEvents?

What is “-[UIApplication beginIgnoringInteractionEvents] overflow. Ignoring.”?

Ignoring UI Events in AppKit

beginIgnoringInteractionEvents or userInteractionEnabled = NO not working as expected

like image 425
Baby Groot Avatar asked Feb 25 '13 07:02

Baby Groot


1 Answers

You can always check.

if ([[UIApplication sharedApplication] isIgnoringInteractionEvents])...
like image 120
Rok Jarc Avatar answered Sep 27 '22 21:09

Rok Jarc