【发布时间】:2019-09-05 13:33:45
【问题描述】:
我的AppDelegate 中有一个touchesBegan 方法。我用它来检测状态栏中的点击。我在那里已经有很长时间了,而且效果很好。直到 iOS 13 测试版出来......
自从使用 iOS 13 后,touchesBegan 就不再被调用了。我的应用程序中与手势相关的其他任何内容都没有改变,我的AppDelegate 中的任何内容都没有改变。除了在 iOS 12 中而不是在 iOS 13 中调用 touchesBegan 之外,我真的没有太多事情要做。
到目前为止还没有运气,所以我在这里分享这个,以防其他人遇到相同或类似的问题。
更新:1
我发现了以下半相关的问题,并导致我在 iOS 13 中找到了 Apple 的新 UISceneDelegate。这些问题都不能解释为什么没有调用 touchesBegan。到目前为止,据我了解UISceneDelegate,我还没有找到为什么没有调用touchesBegan。
View controller responds to app delegate notifications in iOS 12 but not in iOS 13
How to detect touches in status bar
iOS13: how to detect a status bar click event?
【问题讨论】:
-
你找到什么了吗?遇到同样的问题,一直无法解决。
-
@Miguel,还没有,但如果我愿意,我会在这里更新。
-
@Xeaza 感谢您的研究。我有同样的问题,似乎在 iOS 13 上应该在 SceneDelegate 上检测到水龙头,但我认为这意味着应用程序必须放弃对
的支持
标签: ios uigesturerecognizer touchesbegan ios13