书上例子“多视图应用程序”
- (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存在么