I am develop a sample app with multiple xib files and trying to make a navigate, first view to second unfortunately app has crashed
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'ViewController'
What is the reason? some code that I used:
#import "ViewController.h" /*current view*/
#import "secondViewController.h" /*view for navigate*/
-(void)navigation{
secondViewController *desController=[[secondViewController alloc]initWithNibName:@"ViewController" bundle:nil];
[self presentViewController:desController animated:YES completion:nil];
}