我正在使用这两个函数[[UIApplication sharedApplication] beginIgnoringInteractionEvents];和[[UIApplication sharedApplication] endIgnoringInteractionEvents];我从服务器下载数据时.
我在日志中遇到错误.
-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
How do you disable touch to screen without using beginIgnoringInteractionEvents?
What is “-[UIApplication beginIgnoringInteractionEvents] overflow. Ignoring.”?
beginIgnoringInteractionEvents or userInteractionEnabled = NO not working as expected
解决方法
你总是可以检查.
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents])...