title: IPhone UIView - How should a UIViewController handle sizing of a UIView when its size is unknown in advance?
body: <p>(IPhone newbie question) </p>
  
  <p>I've subclassed a <em>UIViewController</em> and a <em>UIView</em>, and created a <em>InitWithFrame</em> for the view. My custom controller uses this to initialize its view, by frame, in its <em>loadView</em> function.</p>
  
  <p>I plan to use the controller and view in my code at different places. At times under a navigation controller, toolbar, both, neither etc. This means that the code creating the view in <em>loadView</em> of the controller, should ideally know in what size to create the view.</p>
  
  <p>How do I avoid hard coding these sizes for the different cases? Is there a way to build the surrounding controllers (navigation bar, etc.), then figure out the size of the viewable frame, and somehow only then create my controller and initialize my custom view using this frame size?</p>
  
  <p>If my design is incorrect, any tip could be of great assistance... Thanks!</p>