Wednesday, December 4, 2013

Iphone development xcode4.0 run on the book example error Thread 1: Program received signal: "SIGABRT"

Book example of a "multi-view application"
- (Void) viewDidLoad
{
BlueViewController * blueController = [[BlueViewController alloc]
initWithNibName: @ "BlueView" bundle: nil];
self.blueViewController = blueController;
[Self.view insertSubview: blueController.view atIndex: 0]; ----------------- here error Thread 1: Program received signal: "SIGABRT"
[BlueController release];
[Super viewDidLoad];
/ / Do any additional setup after loading the view from its nib.
}
I am a novice in the Internet to find a lot of methods are tried ah, prawn help solve is what ah? ? ?
Reply:
Print what blueController object, look not generated
Reply:
BlueViewController * blueController = [[BlueViewController alloc]
initWithNibName: @ "BlueView" bundle: nil];

BlueView nib existence of what
Reply:
BlueViewController * blueController = [[BlueViewController alloc]
initWithNibName: @ "BlueView" bundle: nil];

BlueView nib existence of what


Thank you, Thank you, that is the problem, it should be BlueViewController, written BlueView, thanks a lot

No comments:

Post a Comment