title: iPhone SDK: what is the difference between loadView and viewDidLoad?
body: <p>When working with views and view controllers in an iPhone app, can anyone explain the difference between loadView and viewDidLoad?  </p>
  
  <p>My personal context, is that I build all my views from code, I do not and will not use Interface Builder, should that make any difference.</p>
  
  <p>I've found that often when I add init code to loadView, I end up with an infinite stack trace, so I typically do all my child-view building in viewDidLoad...but it's really unclear to me when each gets executed, and what is the more appropriate place to put init code.  What would be perfect, is a simple diagram of the initialization calls.</p>
  
  <p>Thanks!</p>