title: Where to set popover size?
body: <p>I have a <code>UIViewController</code> called <code>HomeViewController</code> and it has a model that contains an array of data.  <code>HomeViewController</code> also has a button that when pressed will show a <code>UITableViewController</code> that display's the model's array of data.  </p>
  
  <p>My question is, what is the standard/best way to set the popover's size? I only want the popover to be tall enough to display the data, but no taller.  What is common practice? I assume that I need to set <code>contentSizeForViewInPopover</code> at some point but I'm not sure where...In the <code>viewDidLoad</code> method of the popover class? In the <code>prepareForSegue</code> method?</p>
  
  <p>Here's the code I have so far: (Note that <code>DataPresentingViewController</code> is my popover view controller class`)</p>
  
  <pre><code>//In HomeViewController
  - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
      if([segue.destinationViewController isKindOfClass:[DataPresentingViewController class]])
      {
          DataPresentingViewController *dest = (DataPresentingViewController *) segue.destinationViewController;
          dest.mySavedData = self.myModel.mySavedData;
      }
  }
  </code></pre>
  
  <p>I know that I could just set the <code>contentSizeForViewInPopover</code> here in the <code>prepareForSegue</code> method; however, this seems like something the popover class should deal with.  </p>