Simple question here. I have a UIButton, currencySelector, and I want to programmatically change the text. Here\'s what I have:
currencySelector.text = \"foo
Swift 3
When you make the @IBAction:
@IBAction func btnAction(_ sender: UIButton) { sender.setTitle("string goes here", for: .normal) }
This sets the sender as UIButton (instead of Any) so it targets the btnAction as a UIButton