How to show a UIViewController on the First time Application Launch?
<p>I want to know how to show a page on the very first time launch of the application,I had serch for these and get many code but in my case its not working for me, I have this code in DidFinishLaunching Method,</p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],@"firstLaunch",nil]];

    //If First Launch
    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstLaunch"]) {
        //Show help view
        UIScrollView_PagingViewController *detailViewController = [[UIScrollView_PagingViewController alloc] initWithNibName:@"UIScrollView_PagingViewController" bundle:nil];

        //detailViewController.firstString = firstString;
        // ...
        // Pass the selected object to the new view controller.

        [self.navigationController pushViewController:detailViewController animated:YES];

        [detailViewController release];

    }
    else {
    NSError *error = nil;
    NSString *username = [[NSUserDefaults standardUserDefaults] objectForKey:@"username"];
    NSString *str =  [SFHFKeychainUtils getPasswordForUsername:username andServiceName:@"mybibleapp" error:&amp;error];
    NSLog(@"previous user");

    NSLog(@"%@", str);

    if (!error &amp;&amp; nil != str)
    {
        ParallelReadViewController *detailViewController = [[ParallelReadViewController alloc] initWithNibName:@"ParallelReadViewController" bundle:nil];

        //detailViewController.firstString = firstString;
        // ...
        // Pass the selected object to the new view controller.

        [self.navigationController pushViewController:detailViewController animated:YES];

        [detailViewController release];
    }
    else
    {
        RootViewController *detailViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];

        //detailViewController.firstString = firstString;
        // ...
        // Pass the selected object to the new view controller.

        [self.navigationController pushViewController:detailViewController animated:YES];

        [detailViewController release]; 
    }
}
</code></pre>

<p>but when i run this code ,it shows a blank white screen ,nothing shows.</p>

<pre><code>[[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],@"firstLaunch",nil]];

        //If First Launch
        if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstLaunch"]) {
            //Show help view
            UIScrollView_PagingViewController *detailViewController = [[UIScrollView_PagingViewController alloc] initWithNibName:@"UIScrollView_PagingViewController" bundle:nil];

            //detailViewController.firstString = firstString;
            // ...
            // Pass the selected object to the new view controller.

            [self.navigationController pushViewController:detailViewController animated:YES];

            [detailViewController release];

        }
        else {
</code></pre>

<p>i put the above code for launch UIScrollView_PagingViewController to launch .but no luck.What is the mistake i made in the above code.?.please help me.
Thanks in advance.</p>
