Disabling a UIButton

suggest change

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents