title: How to programmatically load UIViewController
body: <p>I have the following code and I want to load the UIViewController. How can I initialize and load the UIViewController. </p>
  
  <pre><code>- (void) applicationDidFinishLaunching:(UIApplication*)application
  {
  
      CC_DIRECTOR_INIT();
  
      NSLog(@"applicationDidFinishLaunching");
  
      MainViewController *controller = [[MainViewController alloc] init]; 
  
  
  
  
  
  }
  </code></pre>