I don’t know what could be causing this. I chose “View Based Application”. I just installed the newer (although not the newest) version of xCode, so to try it out, I made a tester application. I made a button that when clicked, alternates a label between shown and hidden. The program ran, no errors or warnings, but when the sim. brings it up, all there is is a blank screen with no button or label. I am truly clueless…
$- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
[window addSubview:viewController.view];
[window makeKeyAndVisible];
return YES;
}
$
I don’t know if there is something corrupt with this App Delegate method, but it seems as though that may be the problem (as this is the method loading and making the .xib file visible.
Thanks in advance!
You are missing this line:
If it is still not working, I would recommend making a duplicate project and just copying and pasting the App Delegate code from that into your current project.