I've read a number of similar posts but I cannot get an answer that works for me. I have this beginning in my AppDelegate:
//LOAD WINDOWS
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window makeKeyAndVisible];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
self.initialViewController = [[InitialViewController alloc] initWithNibName:@"InitialViewController" bundle:nil];
[self.window setRootViewController:self.initialViewController];
} else {
self.patternViewController = [[PatternViewController alloc] initWithNibName:@"PatternView_iPhone" bundle:nil];
[self.window setRootViewController: self.patternViewController];
}
return YES;
This is working for the iPad version, but not for the iPhone. I get these messages in the console:
The PatternView_iPhone xib is of the PatternViewController class.
In the project summary, I have these settings:
and

The error says that there is object whose class name is RootviewController in the xib .Open the xib/storyboard as source (Right click and open as source code) and search RootviewController. Find where the tag comes and find the object and change it to valid object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With