title: Adding subview in xcode hides rest of the view
body: <p>I want to add a subview programmatically to my view, <code>FirstViewController.xib</code>. For now this is how it looks like</p>
  
  <p><img src="https://i.stack.imgur.com/y52PD.png" alt="enter image description here"></p>
  
  <p>When I click on the compose button another view, <code>SecondViewController.xib</code>, pops up from the bottom. It has a navigation bar similar to what you see in the picture.</p>
  
  <p>No I want to add a subview:</p>
  
  <pre><code>TTMessageController* controller = [[[TTMessageController alloc] 
                                   initWithRecipients:nil] autorelease];
  
  [self.view addSubview:controller.view]
  </code></pre>
  
  <p>However I get a strange result. The <code>controller.view</code> is overlapping the sidebar:</p>
  
  <p><img src="https://i.stack.imgur.com/7okqr.png" alt="enter image description here"></p>
  
  <p>How can I solve that problem so that the navigation bar is visible.</p>