Creagen
Creagen

Reputation: 488

How do I properly hide a container view?

I have a container view on top of my view controller and when I use this code to try and hide the container view, the container view disappears BUT the view controller underneath becomes user disabled. As in you cant touch anything or do anything.

This is the code I am using:

[self.childViewControllers[0] view].hidden = YES;

Any help would be greatly appreciated.

enter image description here

Upvotes: 2

Views: 777

Answers (1)

elk_cloner
elk_cloner

Reputation: 2149

Just drag the outlet of your containerView and hide it.

yourContainerView.hidden = YES;

Upvotes: 3

Related Questions