Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在iPhone设备上加载捆绑包中的nib“;西格巴特;_Iphone_Xcode_Nib - Fatal编程技术网

无法在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文件