I have been trying to solve this problem for over 14 hours now...I am really hoping that someone could please help me load my storyboard. Everytime I try it non-programmatically, it decides it wants to keep it as a black screen (and its not the loading screen. I checked to see if it was in the initial view controller. Yet nothing. So I figure, maybe I need to do it programmatically. I've synthesized them properly as you can see. Still nothing. What am I doing wrong (there is no xcode error output).
Appdelegate.h
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate> {
UIWindow *window;
UIViewController *viewController;
}
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UIViewController *viewController;
@end
AppDelegate.m
#import "AppDelegate.h"
#import "ViewController.h"
@implementation AppDelegate
@synthesize window;
@synthesize viewController=_viewController;
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc]
initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Save data if appropriate
}
- (void)loadView