Why is it that when I use this code in the AppDelegate the gap between the UILabel and the top of the view I created in the xib goes away. Am I adding the subview the wrong way?
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
MainViewController *mainView = [[MainViewController alloc]initWithNibName:@"MainViewController" bundle:nil];
[self.window addSubview:mainView.view];
[mainView release];
[self.window makeKeyAndVisible];
return YES;
}