Newb question - button transparency

Discussion in 'iPhone/iPad Programming' started by david77, Jun 2, 2011.

  1. macrumors regular

    Joined:
    Aug 1, 2008
    #1
    When a button is set to disabled, does the transparency have to be set manually?
     
  2. macrumors regular

    nickculbertson

    Joined:
    Nov 19, 2010
    Location:
    Nashville, TN
    #2
    Yes but all you have to do is.

    Code:
    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
     

Share This Page