How do I reference self
from within a UIAlertAction?
refreshAlert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { (action: UIAlertAction!) in
// self.title = String("HELLO")
print("Handle Ok logic here")
}))
I want the title of the UIAlertAction to change when it is clicked on (as well as other things). How do I reference myself in the command for what to do when clicked on?
How do I make it where clicking on a UIAlertAction doesn't close the alert action