title: Dynamically load nib for iPhone/iPad within view controller
body: <p>I have converted an iPhone application using the wizard like thing in XCode into a universal app. </p>
  
  <p>It builds fine but obviously looks a bit rubbish in some areas :)</p>
  
  <p>I need to load nibs according to which device is being used. I dont wish to create my view controllers using <code>initWithNib</code> as I already have code to create the controllers with some data (<code>initWithMyLovelyData</code>) which doesnt do anything to do with nib loading. </p>
  
  <p>I know to find out the device you use <code>UI_USER_INTERFACE_IDIOM()</code> so I tried overriding the <code>initWithNibName</code> within the actual view controllers themselves, assuming they get called internally somehow. But it's not working as I guess I am unsure of the syntax. </p>
  
  <p>I have tried</p>
  
  <pre><code>if(ipad..) self = [super initWithNibName:@"MyIpadNib" bundle:nibBundleOrNil];
  </code></pre>
  
  <p>And that doesnt work :/</p>
  
  <p>EDIT - I know I have massively edited this, made my question a bit more specific after doing some more research - apologies!</p>