I have a
UINavigationController and I want to start from that navigation a new
UIViewController that has its own view controller . when I tried to do that , I faced this exception
Could not load NIB in bundle loaded)' with name and directory 'Main.storyboardc''
I am adding the new view controller with these two line of code
UIViewController *mainViewController =[self.storyboard instantiateViewControllerWithIdentifier:@"CGMainViewController"]; [self presentViewController:mainViewController animated:NO completion:nil];
Is there any way to start a new
UIViewController from a navigation controller without adding it to that navigation ?