无法在iPhone设备“ SIGBART”上捆绑装入笔尖

问题描述

| 我正在使用此代码加载我的视图,但发生了错误,这是代码:
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扩展名。     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...