title: adding view controller as child view in ios
body: <p>Hi i am trying to add a <code>view controller</code> as a <code>child view</code>. and later remove this <code>view controller</code> form parent view.I am using following code for this purpose.</p>
  
  <pre><code> self.loginView = [self.storyboard instantiateViewControllerWithIdentifier:@"LOGIN"];
   [self.view addSubview:self.loginView.view];
  </code></pre>
  
  <p>This code works fine for <code>iOS8</code> but in <code>iOS7</code> this code is not working it shows the half of the screen.On half part login is shown.</p>
  
  <p>What could be the solution for this??</p>