Disable UIButton without fading

When I turn off the button using Button.enabled = NO; , the button disappears.

Can this be prevented?

I want to disable the functionality of a button, but I want it to look the same.

+6
source share
2 answers

Try using

 [Button setUserInteractionEnabled:NO]; 

Hope this helps you!

+17
source

You can prevent the user from interacting with the button using this

 yourButton.userInteractionEnabled = NO; 
+1
source

All Articles