I have this code snippet but its crashing the application.
This line in the code is making the app crash...
[self.view insertSubview:blueController.view atIndex:0];
if i commet it out, the app works, when I comment it back in, it breaks?
Why?
Cedric
Code:
- (void)viewDidLoad
{
BlueViewController *blueController = [[BlueViewController alloc] initWithNibName:@"BlueView" bundle:nil];
self.blueViewController = blueController;
[self.view insertSubview:blueController.view atIndex:0];
[blueController release];
}
This line in the code is making the app crash...
[self.view insertSubview:blueController.view atIndex:0];
if i commet it out, the app works, when I comment it back in, it breaks?
Why?
Cedric