Как отклонить UIAlertController
при нажатии вне UIAlertController
?
Я могу добавить UIAlertAction
стиля UIAlertActionStyleCancel
, чтобы отклонить UIAlertController
.
Но я хочу добавить функцию, которая при нажатии пользователя UIAlertController
UIAlertController
будет удалена. Как это сделать? Спасибо.