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.
Try using
[Button setUserInteractionEnabled:NO];
Hope it helps you!
You can prevent the user to interact with button using this
yourButton.userInteractionEnabled = NO;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With