title: Bring container view to front
body: <p>I have stacked a bunch of container views on top of one another and am hiding / unhiding based on user clicks elsewhere on the screen like below:</p>
  
  <pre><code>[self.childViewControllers[13] view].hidden = NO;
  </code></pre>
  
  <p>The hiding/unhiding is working fine BUT only one of them lets the controls on it be used.....it is the top one.</p>
  
  <p>How do I reorder when hiding/unhiding for user clicks please? </p>
  
  <p>I have now tried the following based on the answers yesterday:</p>
  
  <pre><code>UIView *x = self.childViewControllers[12];
  [self.view bringSubviewToFront:x];
  </code></pre>
  
  <p>but it gives the error </p>
  
  <blockquote>
    <p>unrecognized selector sent to instance</p>
  </blockquote>
  
  <p>I have also tried:</p>
  
  <pre><code>UIView *x = self.childViewControllers[12];
          x.layer.zPosition = 100;
  </code></pre>
  
  <p>which gives the same error message
  thanks lots</p>