0

I have an UIAlertView which highlights the Cancel button, but it should highlight the other one. Switching the buttons is not an option.

This is how I initialised the Alert:

let downloadAlert = UIAlertView(title: NSLocalizedString("Title", comment: ""),
                message: NSLocalizedString("Message", comment: ""),
                delegate: self,
                cancelButtonTitle: NSLocalizedString("Cancel", comment: ""),
                otherButtonTitles: NSLocalizedString("Okay", comment: ""))

And this is how it looks: enter image description here Thanks for your help.

kchromik
  • 1,348
  • 2
  • 13
  • 42

1 Answers1

1

Looks like you can't simply change the UIAlertView's style. I think you need to access the buttons you want to modify externally. Therefore see the following link.

Community
  • 1
  • 1
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174