My application is split into an application delegate.
The error he throws is:
Application termination due to an uncaught exception "NSInvalidArgumentException", reason: "Unable to execute a comparison request for type: (null)"
My code is below. I left the registration instructions so you can see where I checked:
self.viewController = [[ParseStarterProjectViewController alloc] initWithNibName:@"ParseStarterProjectViewController" bundle:nil]; NSLog(@"View controller is %@",self.viewController); UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self.viewController]; NSLog(@"Nav controller is %@",navController); NSLog(@"Self window is %@",self.window); self.window.rootViewController = navController;
It breaks when it tries to run this last line by setting rootViewController on navController.
The NSLog three-line results are as follows:
View controller is <ParseStarterProjectViewController: 0x1fda0770> Nav controller is <UINavigationController: 0x1fda1390> Self window is <UIWindow: 0x1fd97c90; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <UIWindowLayer: 0x1fd97d90>>
It doesn't seem like something is valid to me, so I'm very confused.
source share