How to resolve this warning:
Unsupported Configuration: Tab Bar Controller NIB Name set to MainWindow.nib (This view controller is not intended to have its view set in this manner)
?
- (void)applicationDidFinishLaunching:(UIApplication *)application {
databaseName = @"RecipeDatabase.sql";
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDir = [documentPaths objectAtIndex:0];
databasePath = [documentsDir stringByAppendingPathComponent:databaseName];
[self checkAndCreateDatabase];
[self readAnimalsFromDatabase];
[self.window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
@EIJay :this is the method you mentioned , i am new to iOS so please will you suggest changes??
If you are using Storyboards, make sure the didFinishLaunchingWithOptions method in the AppDelegate is only returning YES and not trying to initialize the window.
If this isn’t the case, please post the code you are using in the didFinishLaunchingWithOptions method.