A button can be disabled by

Swift

myButton.isEnabled = false

Objective-C:

myButton.enabled = NO;

The button will become gray:

http://i.stack.imgur.com/uuJPz.png

If you don’t want the button appearance to change when disabled set adjustsImageWhenDisabled to false / NO