iDevGames Forums
conditionally displaying interface elements - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: conditionally displaying interface elements (/thread-1092.html)



conditionally displaying interface elements - aerospaceman - Jun 25, 2009 10:11 AM

Hello again, I have a very basic question Smile

I have defined two buttons in my nib and also added outlets to my view controller. I would like the buttons to stay hidden and disabled while the game is playing and only appear when the game lose condition is met.
I have tried removefromsuperview in the init method for the view controller, with insertsubview when the game lose condition is met, but the buttons stay visib le throughout....


conditionally displaying interface elements - kodex - Jun 25, 2009 10:26 AM

UIButton *button;
button.hidden = TRUE;


conditionally displaying interface elements - aerospaceman - Jun 25, 2009 12:20 PM

thank you Kyle, I assume that renders the button inactive besides hiding it.Grin