【问题标题】:Getting crashed When navigate the View导航视图时崩溃
【发布时间】:2016-07-08 11:58:26
【问题描述】:

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

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'' * 首先抛出调用栈:

【问题讨论】:

  • 显示堆栈跟踪和相关代码。
  • -(void) tournmentView :(NSString ) selectType{ TorunamentVCTETS = [[TorunamentVC alloc]init]; TETS = (TorunamentVC*)[self.storyboard instantiateViewControllerWithIdentifier:@"tornmentid"]; TETS.selectDashBoard=selectType; [self.navigationController pushViewController:TETS 动画:YES]; }
  • 我遇到这个崩溃的问题是什么
  • 你确定这个 viewcontroller 在 Storyboard 中退出了吗?
  • 内存问题,清理你的产品并运行一次

标签: ios


【解决方案1】:
TorunamentVC*TETS = [self.storyboard instantiateViewControllerWithIdentifier:@"tornmentid"];
TETS.selectDashBoard=selectType;
[self.navigationController pushViewController:TETS animated:YES];

试试这个

【讨论】:

  • 嗨,开发人员,对不起,由于未捕获的异常“NSInternalInconsistencyException”,我得到了相同的终止应用程序,原因:“无法在捆绑包中加载 NIB:”NSBundle /user/Library/Developer/CoreSimulator/Devices/ 94D3B1FF-7782-4D0D-9856-16053697D207/data/Containers/Bundle/Application/E482648D-FE16-427F-B6D8-B5E13CE42F56/CAPScoringApp.app>(已加载),名称为“BYZ-38-t0r-view-8bC-Xf” -vdC' 和目录'Main.storyboardc'
  • 由于未捕获的异常'NSInternalInconsistencyException',我得到了相同的崩溃终止应用程序,原因:'无法在捆绑包中加载 NIB:'NSBundle /user/Library/Developer/CoreSimulator/Devices/94D3B1FF -7782-4D0D-9856-16053697D207/data/Containers/Bundle/Application/E482648D-FE16-427F-B6D8-B5E13CE42F56/CAPScoringApp.app>(已加载)',名称为'BYZ-38-t0r-view-8bC-Xf- vdC'和目录'Main.storyboardc'
  • 你在用xib吗?
  • 将 self.storyboard 更改为适当的故事板
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-07-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-23
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多