Difference between the legacy UIAlertView
and the new UIAlertController
is that the latter needs to be presented onto a specific viewcontroller with presentViewController:animated:completion:
. This poses an awkward problem for my use case: what if there is already an UIAlertController
showing (e.g. a rating dialog) when a second viewcontroller gets presented (e.g. an error dialog due to failed network connection). I have experienced that in this case the second UIAlertController
just does not show.
Edit: At the moment I try to show an alert, I do not know if there currently is anything presenting.
How do you cope with this situation?