tags:

views:

99

answers:

3
A: 

There is way too little information here to diagnose exactly whats causing this, but one thing is certain. The method you are sending to the object is not defined for that object. Please post the code thats causing the error and the .h and .m files for the simple view you are talking about.

You probably need to set the class of the view controller in IB to LibraryDescripViewController. Double click the LibraryDescripViewController.xib file in xcode and when IB opens, in the identity view of the file's owner set the class to LibraryDescripViewController

ennuikiller
and the simple view... i have made no changes in the simple view that i created. i just created a uicontroller class and its xib. using the ib, i just added a text view there...just for clarity..please help
raqz
+2  A: 

You can get more information about where the error is happening by opening your debugger window, clicking on "Show Breakpoints", and setting the following two breakpoints:

[NSException raise]
objc_exception_throw

Now when your app is about to crash, the debugger will usually show you exactly what line of code is causing the problem.

For this reason, it's good practice to have these breakpoints on every app you are developing.

William Jockusch
Thank you.. I found the error, I had not synthesized the new controller.thank you guys...
raqz
If you didn't synthesize, there should have been a compiler warning or error.
bbum
+1  A: 

It seems that you are calling "self.libraryDescripViewController = aLib" which is another way of writing [self setLibraryDescripViewController:alib].

The most likely cause of this would be in that you haven't declared the method setLibraryDescripViewController in your class.

Hope this helps.

Matt Delves