I have a UIViewController subclass which I am instantiating and trying to push on to the navigationController like so :
MenuVC *menuVC = [[MenuVC alloc] init]; [self.navigationController pushViewController:menuVC animated:YES]; I don't have a nib file associated with this class and so just doing a simple ..alloc] init] instead of initWithNib:bundle:.
I am still getting a crash on the pushViewController call and the trace says this
reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MenuVC" nib but the view outlet was not set.' I don't see why this could be happening. I have other view controller which loads fine with the same method.