Adding UIViewController subclass with IBOutlet
<p>I have seen this example on Apple's website before, but for some reason, I cannot find it and am brainfarting.  I created a TestViewController.h and .m file that subclass from UIViewController and have a .xib.  In the TestAppDelegate.h, I have:</p>

<pre><code>@interface TestAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {

    TestViewController *rootController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet TestViewController *rootController;
</code></pre>

<p>in TestAppDelegate.m, I have:</p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [self.window addSubview:rootController.view];
    [self.window makeKeyAndVisible];
    return YES;
}
</code></pre>

<p>Then in my MainWindow.xib, I drag a ViewController, change the class to TestViewController, control drag the outlet from TestAppDelegate to TestViewController.  It builds fine, but when I run it I get:</p>

<pre><code>*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;TestViewController 0x4d06570&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label.'
</code></pre>

<p>I cannot remember what I'm missing in these steps.  Any help would be appreciated.  Thanks.</p>
