Reputation: 1134
When I disable a button using Button.enabled = NO;
the button fades out.
Is it possible to prevent it?
I want to disable the functionality of the button but I want it with the same look.
Upvotes: 6
Views: 1705
Reputation: 31081
You can prevent the user to interact with button using this
yourButton.userInteractionEnabled = NO;
Upvotes: 1