title: How to control a UIViewController's view frame
body: <p>I'm creating a view controller like this:</p>
  
  <pre><code>MyViewController* viewController = [[MyViewController alloc] initWithNibName:nil bundle:nil];
  viewController.view.frame = CGRectMake(0,0,320,300);
  [self addChildViewController:viewController];
  [self.view addSubview:viewController.view];
  [viewController didMoveToParentViewController:self];
  </code></pre>
  
  <p>Obviously I want the view to be sized to 0,0,320,300.</p>
  
  <p>However, viewDidLoad gets called before the frame gets set, and thus in viewDidLoad I get this:</p>
  
  <pre><code>&lt;UIView: 0x155d3180; frame = (0 0; 320 568); autoresize = W+H; layer = &lt;CALayer: 0x155c20c0&gt;&gt;
  </code></pre>
  
  <p>So the views in the new view controller get laid out based on a height of 568 instead of the 300 that I want. What can I do to prevent this new view from being created with the wrong frame size?</p>