title: viewDidLoad and setting frame size in UIViewControllerContainment
body: <p>So I have a <code>UIViewController</code> inside a <code>UIViewController</code> and inside a <code>UIViewController</code> and I am trying to adjust its frame. However when I call <code>setFrame:</code>, it calls the <code>viewDidLoad</code> of that particular view controller I am trying to adjust the frame. However at that time the <code>frameSize</code> isn't the one that I set. In this <code>viewDidLoad</code> I am also calling a private method called <code>loadDataFromServer</code>, which pulls in data from memory first and then make a call to the server. Because it's loading data from memory, it does it really quick, basically before viewDidLoad is finished and therefore the frame size hasn't been adjusted yet. So I see the view with the wrong size/layout first and then it adjusts after getting data from the server, which at this point <code>viewDidLoad</code> is finished and the frame is adjusted well. </p>
  
  <p>If I move the <code>loadDataFromServer</code> call to <code>viewDidAppear</code> then it all looks fine. The thing is that I am not sure when <code>viewDidAppear</code> is called. Is it called after <code>viewDidLoad</code> once? Or is it called after <code>viewWillAppear</code>? Any idea/work around for this?</p>
  
  <pre><code>    ContainerViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"ContainerViewController"];
      vc.delegate = self;
  
      UINavigationController *newsfeedNavController = [[UINavigationController alloc] initWithRootViewController:vc];
  
      [self addChildViewController:newsfeedNavController];
      newsfeedNavController.view.frame = CGRectMake(0, 0, self.view.frameWidth, self.view.frameHeight);
      [self.view addSubview:newsfeedNavController.view];
      [newsfeedNavController didMoveToParentViewController:self];
      [newsfeedNavController release];
  </code></pre>