如何self
从 UIAlertAction 中引用?
refreshAlert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { (action: UIAlertAction!) in
// self.title = String("HELLO")
print("Handle Ok logic here")
}))
我希望 UIAlertAction 的标题在单击时更改(以及其他内容)。如何在命令中引用自己单击时要执行的操作?
如何使它在单击 UIAlertAction 时不会关闭警报操作