title: Creating a new ViewController and xib for programmatic display (with addSubview)
body: <p>I am writing a library to be used by developers for the iPhone (similar to the way that OpenFeint is implemented) and I am trying to create a ViewController with an associated XIB so that I can instantiate it in my code with</p>
  
  <pre><code>SplashScreenViewController *splashScreenViewController = [[SplashScreenViewController alloc] init];
  UIWindow *topApplicationWindow = [self getTopWindow];
  [topApplicationWindow addSubview:splashScreenViewController.view];
  </code></pre>
  
  <p>However, while this works with simple controls (UIButtons, etc), nothing shows up with my SplashScreenViewController.  SplashScreenViewController is very simple:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;Foundation/Foundation.h&gt;
  
  
  @interface SplashScreenView : UIViewController {
  }
  
  @end
  </code></pre>
  
  <p>and the implementation is empty.  In my View XIB (SplashScreenView.xib), I have tried setting the File's Owner's class to SplashScreenViewController which didn't work, then I tried it the way I've seen it done in OpenFeint which is to add a View Controller in IB and make the main UIView a child of it and make it of class SplashScreenViewController instead.  That also does not work (does not display).</p>
  
  <p>I'm wondering if anyone has a good idea for what I might be missing, or if someone can recommend a walkthrough for creating new ViewControllers the way that I'm attempting to.</p>
  
  <p>Thanks! </p>