rptwsthi
rptwsthi

Reputation: 10182

Error while calling another view

I'm Calling MainMenu View as:

MainMenu *obj=[[MenuViewController alloc] init];
[self presentModalViewController:obj animated:NO];

But it shows following error..

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MenuViewController" nib but the view outlet was not set.' * Call stack at first throw:

Please Fix it.. thank you..

Upvotes: 1

Views: 665

Answers (3)

vijay adhikari
vijay adhikari

Reputation: 2455

i think your problem clearly in the error try to catch that error

loadViewFromNibNamed:bundle:] loaded the "MenuViewController" nib.....>>> but the view outlet was not set

Upvotes: 1

Matteo Alessani
Matteo Alessani

Reputation: 10422

You need to open your nib in interface builder and connect your view with the view in File's Owner

Upvotes: 4

itZme
itZme

Reputation: 1439

Open your nib file and set your view outlet.

Upvotes: 0

Related Questions