PDA

View Full Version : Newb question - button transparency




david77
Jun 2, 2011, 08:01 AM
When a button is set to disabled, does the transparency have to be set manually?



nickculbertson
Jun 2, 2011, 09:00 AM
Yes but all you have to do is.


buttonname.hidden=YES; //equal to NO to show the button again
or
buttonname.alpha=0.0; //1.0 to show again


This works for UIButtons but buttons on tool/nav bar operate differently.

Nick