2016-07-08 93 views
-1

当我导航到另一个视图它的完美导航..如果再次返回原始视图时,我再次单击按钮导航我得到了崩溃......我没有明白什么是问题任何一个可以帮助解决这个问题提前 感谢崩溃当浏览视图

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

*终止应用程序由于未捕获的异常“NSInternalInconsistencyException”,理由是:“不能在包中加载NIB:‘一个NSBundle(加载)’与名'BYZ-38-t0r-view-8bC-Xf-vdC'和目录'Main.storyboardc'' * First throw call sta CK:

+0

显示堆栈跟踪和相关代码。 – Droppy

+0

- (void)tournmentView:(NSString *)selectType {0} {0} {0} {0} TorunamentVC * TETS = [[TorunamentVC alloc] init]; TETS =(TorunamentVC *)[self.storyboard instantiateViewControllerWithIdentifier:@“tornmentid”]; TETS.selectDashBoard = selectType; [self.navigationController pushViewController:TETS animated:YES]; } – fathima

+0

我碰到这个问题有什么问题 – fathima

回答

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

试试这个

+0

嗨Dev对不起,我得到了相同的终止应用程序由于未捕获的异常'NSInternalInconsistencyException',原因:'无法加载捆绑NIB:'NSBundle(已装载)',名称为'BYZ-38-t0r-view- 8bC-Xf-vdC'和目录'Main.storyboardc' – fathima

+0

由于未捕获异常'NSInternalInconsistencyException',原因:'无法在捆绑中加载NIB:'NSBundle(已装载)',名称为'BYZ-38-t0r- view-8bC-Xf-vdC'和目录'Main.storyboardc' – fathima

+0

你在用xib吗? –