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
To change color of text
button.titleLabel.textColor = UIColor.grayColor()
To change state, on button press add following -
button.enabled = true
IBAction method should be like -
@IBAction func buttonTapped(sender : UIButton!) { sender.enabled = false }