A button can be disabled by
Swift
myButton.isEnabled = false
Objective-C:
myButton.enabled = NO;
The button will become gray:
If you don't want the button appearance to change when disabled set adjustsImageWhenDisabled
to false
/ NO