conditionally displaying interface elements

Member
Posts: 60
Joined: 2009.06
Post: #1
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....
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #2
UIButton *button;
button.hidden = TRUE;

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 60
Joined: 2009.06
Post: #3
thank you Kyle, I assume that renders the button inactive besides hiding it.Grin
Quote this message in a reply
Post Reply 

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