Tuesday, December 17, 2013

EXC_BAD_INSTRUCTION error, please help!

- (Void) viewDidLoad {
BlueViewController * blueController = [[BlueViewController alloc]
initWithNibName: @ "BlueView" bundle: nil];
self.blueViewController = blueController;
[Self.view insertSubview: blueController atIndex: 0];
[BlueController release];


}

I tracked the [self.view insertSubview: blueController atIndex: 0]; sentence when he out EXC_BAD_INSTRUCTION exception, and I bought IPhone development based tutorial in multi-view switching example, I do the book by , and how the problem will be
Reply:
Should view with no binding on the resources resource.
Reply:
The reply was deleted at the moderator 2009-10-11 09:02:05

Reply:
Hang a breakpoint to see ah
Reply:
blueController was not actually view how to join pour subview it

You can
[Self.view insertSubview: blueController.view atIndex: 0];

But why not read the intent lz
Reply:
The reply was deleted at 2009-10-19 10:41:36 moderator

Reply:
Upstairs positive solution
Reply:

Reply:
references, 4th Floor nerosoft reply:
blueController was not actually view how to join pour subview it

You can
[Self.view insertSubview: blueController.view atIndex: 0];

But why not read the intent lz
Bangding ~

Reply:
references, 4th Floor nerosoft reply:
blueController was not actually view how to join pour subview it

You can
[Self.view insertSubview: blueController.view atIndex: 0];

But why not read the intent lz


Right!
Reply:
reboot your PC, it is OK

No comments:

Post a Comment