As everyone's aware, UIAlertView
is deprecated now and Apple wants us to use the new UIAlertController
with the style UIAlertControllerStyleAlert
. However, using the UIAlertControllerStyleAlert
you cannot trigger the UIAlertAction
with style UIAlertActionStyleCancel
by tapping outside the alert view.
Does anyone know of a way to dismiss the alert view by tapping outside of it?
Cheers