I use these two functions [[UIApplication sharedApplication] beginIgnoringInteractionEvents]; and [[UIApplication sharedApplication] endIgnoringInteractionEvents]; while I download data from the server.
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
The error below appears in my log.
-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
I tried to search on several links, but I can not find a suitable solution for this.
How to disable screen touch without using beginIgnoringInteractionEvents?
What is "- overflow [UIApplication beginIgnoringInteractionEvents]. Ignoring." ?
Ignoring UI Events in AppKit
beginIgnoringInteractionEvents or userInteractionEnabled = NO does not work as expected
You can always check.
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents])...