本文介绍了如何在添加endIgnoringInteractionEvents之前匹配beginIgnoringInteractionEvents的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用这两个函数 [[UIApplication sharedApplication] beginIgnoringInteractionEvents];
和 [[UIApplication sharedApplication] endIgnoringInteractionEvents];
当我从服务器下载数据时。
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.
推荐答案
你可以随时检查。
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents])...
这篇关于如何在添加endIgnoringInteractionEvents之前匹配beginIgnoringInteractionEvents的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!