title: UIViewController view not size correctly when running iOS7 simulator
body: <p>I have a custom UIViewController which create a view containing an action bar at the top (view with 4 buttons), a tableview and then another view below the tableview. Layout is done all in code and is not using auto layout.
  Everything works perfectly on various device with iOS 7.0 and 7.0.2, but in the simulator, the root view of the controller get anchored at the top right corner of the screen (0,0) instead of below the navigation bar.</p>
  
  <p>I'm going to force the relay out in the viewDidAppear: method, but this seem like a hack...</p>
  
  <p>Thanks for any insights</p>
  
  <p><img src="https://i.stack.imgur.com/ergzQ.png" alt="enter image description here">
  Edit: added an image. You can see the UIView highlighted. As ManicMonkOnMac mentioned, the UIView is under the toolbar (but this only happens in the simulator, on the device, the view lines up fine)
  In the loadView method on the controller, i set the frame when creating the view:</p>
  
  <pre><code>- (void)loadView
  {
      // Our parent view controller will resize us appropriately. The size set
      // here is a convenience for initial view layout.
      self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 320)];
      self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  }
  </code></pre>
  
  <p>But this frame is later changed. Not by my code, though, but by UIkit code)</p>
  
  <p>Edit2: addded loadView method body</p>