conditionally displaying interface elements
Hello again, I have a very basic question 
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....

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....
thank you Kyle, I assume that renders the button inactive besides hiding it.

Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
UIView Subclass not displaying controls... | flipflop | 7 | 9,880 |
May 13, 2010 01:16 PM Last Post: flipflop |
|
Problem displaying point sprites | Duddd | 0 | 3,036 |
Feb 12, 2010 02:45 AM Last Post: Duddd |
|
z-order for map elements and sprites in cocos2d | brokenPlatypus | 3 | 8,811 |
Apr 27, 2009 03:42 PM Last Post: LetoK |
|
Custom menus, buttons and UI elements | technocrat9000 | 3 | 5,758 |
Nov 11, 2008 02:49 PM Last Post: longjumper |
|
OpenGL ES (displaying model) | green_ghost | 2 | 4,172 |
Oct 14, 2008 07:10 AM Last Post: codetiger |