Is there an iOS notification if UIAlertView is displayed?

Want to know if there is a notification if UIAlertView appears? Background: my application asks the user for a PIN after a period of inactivity, but I would like to prevent it if a warning appears on the screen. I don’t want to go through my code and find all warnings and turn off PIN verification, instead the notification will be awesome. Any hope with NSNotification ?

+6
source share
1 answer

Just found the answer. It is hidden here:

Can I get a message when I show UIAlertView

If you listen to the " UIWindowDidBecomeVisibleNotification " notification, it will also trigger for your own alerts, not just system alerts. However, for your own notifications, the application does not cancel the activation.

+6
source

Source: https://habr.com/ru/post/898862/


All Articles