is there anyway to wait the user to press the button that dismiss the alertController in swift 3, by using DispatchQueue or something else?
Just move all the code you want to execute after the alert is dismissed into a separate method. When you're adding UIAlertActions
, make all the actions' handler
parameter call that method. This way, whichever button the user presses, your code will always be executed!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With