title: iPhone getting black screen on app launch
body: <p>I am getting a black screen whenever my app launches. There is no error message and I have set my main nib file in the .plist file. Here is some of my code.</p>
  
  <p><strong>AppDelegate.h</strong></p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @class LoginController;
  
  @interface ViiadAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
  
  }
  
  @property (nonatomic, retain) IBOutlet UIWindow *window;
  
  @property (nonatomic, retain) IBOutlet LoginController *viewController;
  
  @end
  </code></pre>
  
  <p><strong>AppDelegate.m</strong></p>
  
  <pre><code>#import "AppDelegate.h"
  
  #import "LoginController.h"
  
  @implementation AppDelegate
  
  
  @synthesize window=_window;
  
  @synthesize viewController=_viewController;
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      // Override point for customization after application launch.
  
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
      return YES;
  }
  </code></pre>
  
  <p>Thanks in advance. I am new to iPhone development.</p>