В настоящее время у меня есть следующая строка кода в одном из моих приложений. Это простой UIAlertView
. Однако, начиная с iOS 8, это теперь устарело:
let alertView = UIAlertView(title: "Oops!", message: "This feature isn't available right now", delegate: self, cancelButtonTitle: "OK")
Как обновить это для работы с iOS 8+? Я считаю, что мне нужно что-то изменить до UIAlertCotroller
, хотя я не уверен, что.