无法在iPhone设备上加载捆绑包中的nib“;西格巴特;
我正在使用此代码加载视图,但出现了错误,代码如下:无法在iPhone设备上加载捆绑包中的nib“;西格巴特;,iphone,xcode,nib,Iphone,Xcode,Nib,我正在使用此代码加载视图,但出现了错误,代码如下: charecterprofile *View = [[charecterprofile alloc] init]; [self.navigationController pushViewController:View animated:YES]; [View release]; 但它不起作用。我该怎么办?请尝试以下代码: charecterprofile *view = [[charecterprofile alloc] in
charecterprofile *View = [[charecterprofile alloc] init];
[self.navigationController pushViewController:View animated:YES];
[View release];
但它不起作用。我该怎么办?请尝试以下代码:
charecterprofile *view = [[charecterprofile alloc] initWithNibName:@"NIB" bundle:[NSBundle mainBundle]];
而不仅仅是分配视图控制器对象。她的NIB是您的xib文件名,没有.xib扩展名。请尝试以下代码:
charecterprofile *view = [[charecterprofile alloc] initWithNibName:@"NIB" bundle:[NSBundle mainBundle]];
而不仅仅是分配视图控制器对象。她的NIB是您的xib文件名,没有.xib扩展名。您有一种在标识符上定义名称的奇怪方法,这是肯定的!控制台上的错误是什么?您是从NIB(XIB)创建视图控制器吗?我正在添加UIVIEWCONTROLING.h、.m和XIB文件您有一种奇怪的方法在标识符上定义名称,这是肯定的!控制台上的错误是什么?您是从NIB(XIB)创建视图控制器吗?我正在添加UIVIEWCONTROLING.h、.m和XIB文件