title: Unable to load UIView with initWithNibName in Apple SDK 3.1.3
body: <p>I am trying to load my UIViewController and corresponding UIView programmatically in the AppDelegate class.  I have the following in the applicationDidFinishLaunchingMethod of the AppDelegate class:</p>
  
  <ul>
  <li><p>(void)applicationDidFinishLaunching:(UIApplication *)application {<br>
  NSLog(@"--- AppDelegate applicationDidFinishLaunching Start");</p>
  
  <p>// Override point for customization after application launch
  //MainController *controller = [[MainController alloc] initWithNibName:@"MainView" bundle:nil];
  MainController2 *controller = [[MainController2 alloc] initWithNibName:@"MainView2" bundle:nil];</p>
  
  <p>if (controller.view == nil)
  {
      NSLog(@"--- controller view is nil!!!!!!");
  }
  [window addSubview:controller.view];
  [window makeKeyAndVisible];</p>
  
  <p>NSLog(@"--- AppDelegate applicationDidFinishLaunching End");
  }</p></li>
  </ul>
  
  <p>Basically the view in the viewController doesn't load and when the application launches, it just shows the blank window.  What is funny is that it worked before and then just stopped working.  I am wondering if this is a bug in iPhone SDK 3.1.3???  This is a really annoying issue, and I was quite a ways along in a new project when I started having this problem and had to start over with a blank project and copy over all of my resources, when it started happening again...  I have uninstalled iPhone OS 3.1.3 and reinstalled and the problem prevails...</p>
  
  <p>I also created a second UIViewController class and corresponding nib which DOES LOAD just fine...  I am not sure why one works and the other doesn't it...</p>
  
  <p>You can download a sample project which demonstrates this issue at the following link:</p>
  
  <p><a href="http://www.mediafire.com/?nmhnmhbeyki" rel="nofollow noreferrer">http://www.mediafire.com/?nmhnmhbeyki</a></p>
  
  <p>To switch back and forth between the working/nonworking UIViewController and UIView simply comment comment/comment out the initWithNibLine lines in the AppDelegate and the corresponding #import "MainController.h" statements in the appdelegate.h file...</p>
  
  <p>Any ideas???</p>
  
  <p>The sample project I have linked to isolates the problem in as few files/lines of code as possible... I appreciate any help you might be able to provide.</p>
  
  <p>Thanks,
  James</p>