【发布时间】:2014-05-05 06:19:49
【问题描述】:
我正在开发一个包含多个 xib 文件的示例应用程序并尝试进行导航,不幸的是应用程序崩溃了,第一个视图到第二个视图
* 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“无法在包中加载 NIB:“NSBundle(已加载)”,名称为“ViewController”
是什么原因?我使用的一些代码:
#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];
}
【问题讨论】:
标签: ios