I want to create my storyboard manually in code rather than have it load automatically, so I first removed the launch storyboard in the plist like so:
With this in my app delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController * initalViewController = [storyboard instantiateInitialViewController];
UIWindow *window = [[UIWindow alloc] init];
[window setRootViewController:initalViewController];
[window makeKeyAndVisible];
self.window = window;
return YES;
}
The initial view controller loads correctly and is visible, however it does not get any touch events. I even set a breakpoint on touchesBegan. Does anyone know why the touches are not being delivered?