touchesBegan is called in iOS 12 but is not called in iOS 13

前端 未结 2 516
萌比男神i
萌比男神i 2021-02-05 22:44

I have a touchesBegan method in my AppDelegate. I use it to detect taps in the status bar. I\'ve had it there for a long time and it\'s worked great. U

2条回答
  •  Happy的楠姐
    2021-02-05 23:30

    I had the same issue recently. It took my several hours to figured it out. I've created another UIWindow on top of the main window to show app notifications/alerts. For some reason it eats all the touch actions when using ios 13. The workaround of mine is that just disable user interaction on the top one. But that means you can't do any user interaction with notifications/alerts obviously.

提交回复
热议问题