Loading specific ViewControllers on tabBarController
<p>I am having problems loading specific ViewControllers on the tabBarController. This is what my project looks like:</p>

<pre><code>TabAppDelegate.m
--------------------

#import "TabAppDelegate.h"
#import "ViewControllerA.h"
#import "ViewControllerB.h"
//etc #import up to F 

- (void)applicationDidFinishLaunching:(UIApplication *)application 
{
    tabBarController = [[UITabBarController alloc] init];

    UIViewController *viewController1 = [[[ViewControllerA alloc] initWithNibName:@"ViewControllerA" bundle:nil] autorelease];
    UIViewController *viewController2 = [[[ViewControllerA alloc] initWithNibName:@"ViewControllerB" bundle:nil] autorelease];
    tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2, nil];

    [window addSubview:tabBarController.view];
    [self.window makeKeyAndVisible];
    return YES;
}


Interface builder
------------------
Tab Bar Controller
    ViewControllerA
    ViewControllerB
    ViewControllerC
    ViewControllerD
    ViewControllerE
    ViewControllerF
</code></pre>

<p>Each ViewController is linked to a class bearing the same name.</p>

<p>As you can see from the diagram above, in Interface Builder I've got a Tab Bar Controller inside which there are lots of View Controllers. In applicationDidFinishLaunching I have written some (clearly wrong!) code with the purpose of only displaying controller A and B within the Tab Controller at launch. However the program crashes immediately with the following error message: </p>

<blockquote>
  <p>Thread 1: Program received signal: "SIGABRT"</p>
</blockquote>

<p>If in <code>applicationDidFinishLaunching</code> I omit the first 4 lines of code (i.e., I don't try to load ONLY ViewControllerA and ViewControllerB) the program launches perfectly, but with ALL the ViewControllers.</p>

<p>Any idea on what I am doing wrong? Thanks!</p>
