SCLAlertView-Swift
SCLAlertView-Swift copied to clipboard
How to change colour of button on click
I want to do something like this:
myButton = alertView.addButton("Enable", backgroundColor: .white, textColor: .black) {
myButton.backgroundColor = .green
}
but it won't let me. I also can't access the customBackgroundColor property of the button. How can I solve this, or is it not possible?