-1

When I Navigate to another View Its Perfectly Navigating ..if Again Back the Originaly View when i again click the button to Navigate i got the crash ...I did't Understand what is the Problem Any One Help To solve this Issues Thanks in Advance

TorunamentVC*TETS = [[TorunamentVC alloc]init];
TETS =  (TorunamentVC*)[self.storyboard instantiateViewControllerWithIdentifier:@"tornmentid"];
TETS.selectDashBoard=selectType;
[self.navigationController pushViewController:TETS animated:YES];

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'BYZ-38-t0r-view-8bC-Xf-vdC' and directory 'Main.storyboardc'' * First throw call stack:

fathima
  • 181
  • 12

1 Answers1

0
TorunamentVC*TETS = [self.storyboard instantiateViewControllerWithIdentifier:@"tornmentid"];
TETS.selectDashBoard=selectType;
[self.navigationController pushViewController:TETS animated:YES];

Try this

Devang Tandel
  • 2,988
  • 1
  • 21
  • 43
  • hi Dev sorry i got same Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'BYZ-38-t0r-view-8bC-Xf-vdC' and directory 'Main.storyboardc' – fathima Jul 20 '16 at 09:02
  • i got the same Crash Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'BYZ-38-t0r-view-8bC-Xf-vdC' and directory 'Main.storyboardc' – fathima Jul 20 '16 at 09:02
  • are you using xib? – Devang Tandel Jul 20 '16 at 11:27
  • chnage self.storyboard to appropriate storyboard – Devang Tandel Nov 24 '16 at 12:58