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存在么