Twitter + OAuth + iPhone = fustration
<p>I'm trying to implement <a href="http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master" rel="nofollow">http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master</a> into my code. I'm following the Demo provided and I can't seem to get it to work. Here is where I think the problem is currently.</p>

<p>So the example declares a view controller that handles the OAuth Connections and such in the app delegates header like so:</p>

<p><strong>app delegate header:</strong> </p>

<pre><code>#import &lt;uikit/uikit.h&gt;

@class OAuthTwitterDemoViewController;

@interface OAuthTwitterDemoAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
    UIWindow *window;
    OAuthTwitterDemoViewController *viewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet OAuthTwitterDemoViewController *viewController;

@end
</code></pre>

<p><strong>The app delegate impl:</strong></p>

<pre><code>@implementation OAuthTwitterDemoAppDelegate

@synthesize window;
@synthesize viewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    // Override point for customization after app launch    
    [window addSubview:viewController.view]; &lt;------------------------
    [window makeKeyAndVisible];
}


- (void)dealloc {
    [viewController release];
    [window release];
    [super dealloc];
}


@end
</code></pre>

<p>So as you can see where the arrow is that we never do an initWithNib or plain init, we just straight add it's view to the window. </p>

<p>What gets called on the viewController is:</p>

<p><strong>OAuthTwitterDemoViewController</strong></p>

<pre><code>- (void) viewDidAppear: (BOOL)animated {
    if (_engine) return;
    _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate: self];
    _engine.consumerKey = kOAuthConsumerKey;
    _engine.consumerSecret = kOAuthConsumerSecret;

    [_engine requestRequestToken];

    UIViewController            *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine: _engine delegate: self];

    if (controller) 
        [self presentModalViewController: controller animated: YES];
    else {
        [_engine sendUpdate: [NSString stringWithFormat: @"Already Updated. %@", [NSDate date]]];
    }

}
</code></pre>

<p>So basically in my example this never gets called, but in the demo it does. I'm confused as to what I might need to do to get this working. I'm wondering since the viewController is an IBOutlet in the app delegates header that I may have to do something in Interface Builder, but I'm not sure what. </p>

<p>Any help would be appreciated!!!</p>
