Я работал над созданием UIAlertView в Swift, но по какой-то причине я не могу правильно понять утверждение, потому что я получаю эту ошибку:
Не удалось найти перегрузку для 'init', который принимает предоставленные аргументы
Вот как я это написал:
let button2Alert: UIAlertView = UIAlertView(title: "Title", message: "message",
delegate: self, cancelButtonTitle: "OK", otherButtonTitles: nil)
Затем для вызова я использую:
button2Alert.show()
На данный момент это сбой, и я просто не могу понять синтаксис правильно.