I'm in the process of converting my iphone app into ipad app. I use a presentModalViewController to open up the next view. It works on my iphone but I get the following error at the [self presentModalViewController:resultsViewController animated:YES]; when I use it on the ipad 4.3 simulator version:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ResultsViewController" nib but the view outlet was not set.
When I run it on the ipad 5.0 simulator version I only get a "Program received signal: SIGABRT" but I don't get he above error. I'm using the new xcode 4.2 and I find it weird I'm getting 2 different error results depending on which simulator I run it on. Does anyone know if the presentModalViewController works on ipad?
I'm in the process of converting my iphone app into ipad app. I use a presentModalViewController to open up the next view. It works on my iphone but I get the following error at the [self presentModalViewController:resultsViewController animated:YES]; when I use it on the ipad 4.3 simulator version:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ResultsViewController" nib but the view outlet was not set.
When I run it on the ipad 5.0 simulator version I only get a "Program received signal: SIGABRT" but I don't get he above error. I'm using the new xcode 4.2 and I find it weird I'm getting 2 different error results depending on which simulator I run it on. Does anyone know if the presentModalViewController works on ipad?
Yes, of course presentModalViewController:animated: works on iPad.
The error is telling you exactly what is wrong. The nibfile for the iPad version of your view controller does not have the main view connected to the view controller's view property. It's an easy mistake to make, and also an easy thing to fix.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Yes, of course presentModalViewController:animated: works on iPad.
The error is telling you exactly what is wrong. The nibfile for the iPad version of your view controller does not have the main view connected to the view controller's view property. It's an easy mistake to make, and also an easy thing to fix.
Ok, I don't have a ~ipad xib file. Does that mean I have to create another xib file for the ipad version and I can't use the existing one for the iphone and just change the dimensions using UI_USER_INTERFACE_IDIOM()?