如何在添加endIgnoringInteractionEvents之前匹配beginIgnoringInteractionEvents
我正在使用这两个函数[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
和[[UIApplication sharedApplication] endIgnoringInteractionEvents];
而我正在从服务器上下载数据。
我在我的日志中出现错误。
-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
我试图search几个链接,但无法find适当的解决scheme。
如何在不使用beginIgnoringInteractionEvents的情况下禁用触摸屏幕?
什么是“ – [UIApplication beginIgnoringInteractionEvents]溢出。 忽略。”?
忽略AppKit中的UI事件
beginIgnoringInteractionEvents或userInteractionEnabled = NO按预期工作
你可以随时检查。
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents])...