title: swift hide container view
body: <p>I have a UITableView in the main view which looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/C7nNn.png" alt="enter image description here"></p>
  
  <p>This table goes all the way to the bottom of the screen</p>
  
  <p>I have a container view which looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/STwzc.png" alt="enter image description here"></p>
  
  <p>The container view shows only when i hit a textfield on the top so I can pick an entry.  In the storyboard the container view is set to Hidden.</p>
  
  <p>Here is how the storyboard looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/HvuBI.png" alt="enter image description here"></p>
  
  <p>The problem I have is that I cant select any row where the container takes up even if its hidden.  I even tried to set the container view height to 0 when after I have made the selection and clicked on the done button just to see if I can select the row after its hidden:</p>
  
  <pre><code>self.view.frame.size.height = 0
  self.view.hidden = true
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Wfb3D.png" alt="enter image description here"></p>
  
  <p>The Container view is hidden again but I cant select "District 3 - 1st Watch" on down rows because the Container View is still there even after I set the size and hidden it</p>
  
  <p><strong>Update: 5/7/2015</strong></p>
  
  <p>OK Nothing seems to be working.  What I have noticed is that if I check off the hidden in the storyboard for the container view then it works (as you can see from my screenshot).  But if I dont set hidden then it doesnt work.  I would be fine with not setting the hidden in the storyboard but setting the container view hidden to false doesnt do anything.  I call this method when I tap on the textfield</p>
  
  <pre><code>func showContainer(tableSource: [DistrictSubscriptionSource])
  {
      println("showContainer")
      self.view.hidden = false        
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/5BJIi.png" alt="enter image description here"></p>