当前位置: 代码迷 >> Iphone >> Iphone开发xcode4.0运行书上例子报错Thread 1:Program received signal:"SIGABRT"解决方法
  详细解决方案

Iphone开发xcode4.0运行书上例子报错Thread 1:Program received signal:"SIGABRT"解决方法

热度:348   发布时间:2016-04-25 06:41:53.0
Iphone开发xcode4.0运行书上例子报错Thread 1:Program received signal:"SIGABRT"
书上例子“多视图应用程序” 
- (void)viewDidLoad 

  BlueViewController *blueController = [[BlueViewController alloc] 
  initWithNibName:@"BlueView" bundle:nil]; 
  self.blueViewController = blueController; 
  [self.view insertSubview:blueController.view atIndex:0];-----------------这里报错Thread 1:Program received signal:"SIGABRT" 
  [blueController release]; 
  [super viewDidLoad]; 
  // Do any additional setup after loading the view from its nib. 

我是新手,在网上找了好多方法都试过不行啊,哪位大虾帮忙解决下是什么原因啊???

------解决方案--------------------
打印一下blueController对象,看看生成了没
------解决方案--------------------
BlueViewController *blueController = [[BlueViewController alloc]
initWithNibName:@"BlueView" bundle:nil];

BlueView的nib存在么
  相关解决方案