• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIView hidden property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIView hidden property


  • Subject: UIView hidden property
  • From: koko <email@hidden>
  • Date: Tue, 26 Apr 2011 20:35:12 -0600

I though I was following a good example ... I do not get the results I expect.

I have a view controller.

To this I have added a second view and wired it up through its IBOutlet.

In viewDidLoad:

	[[self view] addSubview:m_projectSelector];

	m_projectSelector.hidden=NO;

	[super viewDidLoad];

and I see the subview,  as expected

In viewDidLoad:

	[[self view] addSubview:m_projectSelector];

	m_projectSelector.hidden=YES;

	[super viewDidLoad];

and I see the parent view, as expected

I click a button in the parent and in the action set parent hidden to YES and subview's hidden to NO

I do not see the sub view, just a blank screen.

I thought this would en easy and just work.

What am I missing?

-koko



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UIView hidden property
      • From: Evadne Wu <email@hidden>
  • Prev by Date: Re: iOS - AudioSession Category to play in sleep mode
  • Next by Date: Re: UIView hidden property
  • Previous by thread: Re: iOS Best Practice Question
  • Next by thread: Re: UIView hidden property
  • Index(es):
    • Date
    • Thread