我正在创建此警报 View 并尝试使用委托(delegate)方法alertViewShouldEnableFirstOtherButton,但它没有被调用。 文档说它将在 iOS9 中弃用,但我正在使用 iOS8
var alert = UIAlertView(title: "Edit collection name", message: "", delegate: self, cancelButtonTitle: "Cancel", otherButtonTitles: "OK")
alert.alertViewStyle = UIAlertViewStyle.PlainTextInput
alert.show()
*更新 Duncan 指出 UIAlertView 在 iOS8 中已弃用。
最佳答案
UIAlertView 在 iOS8 中已弃用。感谢@Duncan C
关于ios - AlertView 委托(delegate)方法alertViewShouldEnableFirstOtherButton 未调用Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31118638/