Rob*_*Rob 3 iphone pushviewcontroller sigabrt ios
我不确定为什么在我去pushViewController时遇到SIGABRT错误.我将mpCustomFoodController作为IBOUTLET并在我的nib文件中有一个viewController和一个等待接收它的文件但是每次都在这个调用上失败.
-(IBAction)createNewCustomFood:(id)sender{
[self cancelButtonColorChange:sender];
self.title = @"Cancel";
mpCustomFoodController = [[MPCustomFood alloc]initWithNibName:@"MPCustomFood" bundle:nil];
//this is where the error occurs once is calls this
[self.navigationController pushViewController:mpCustomFoodController animated:YES];
//this will be calling the new view
Run Code Online (Sandbox Code Playgroud)
}
如果我不得不猜测,我会说你要么没有使用正确的笔尖名称,要么你的文件所有者对象有一个不存在的插座被分配给.此外,如果您更换了笔尖中的主视图或更改了其控制器的类,则view可以取消分配插座.
| 归档时间: |
|
| 查看次数: |
1415 次 |
| 最近记录: |