Я хочу добавить еще одну кнопку, кроме кнопки "ОК", которая должна просто закрыть предупреждение. Я хочу, чтобы другая кнопка вызывала определенную функцию.
var logInErrorAlert: UIAlertView = UIAlertView()
logInErrorAlert.title = "Ooops"
logInErrorAlert.message = "Unable to log in."
logInErrorAlert.addButtonWithTitle("Ok")
Как добавить еще одну кнопку к этому предупреждению, а затем разрешить ей вызывать функцию после щелчка, так что скажем, что мы хотим, чтобы новая кнопка вызывала:
retry()