Quote:
Originally Posted by Sureway
When I build and go, I get no errors and the app launches in the simulator. As soon as it completes launch, it terminates. I get this "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MainView initWithCoder:]" How do I fix this?
|
The initWithCoder method is the method that is called to create an object from a nibfile.
It sounds like you have a custom class MainView, that is being created from a nibfile. There must be something wrong with the way the object is loaded from the nibfile. Look closely at your nib, checking for references to objects who's types aren't defined, etc.