I need to change the color of my button\'s text. I also need to change the state to Disabled after the user presses it.
I have no idea how to do this. I\'ve been loo
For Swift3, try below code :
@IBAction func butnClicked(sender : UIButton) { sender.setTitleColor(.red, for: .normal) sender.isEnabled = false }
Set Enabled and text color from story board.
Enabled