iPhone - Login screen as modal iOS > 5.0
For some reason presenting a view controller modally after ios 5.0 before the presenters view appears no longer works if you do this:


    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
        LoginController *loginController = [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];
        [self presentModalViewController:loginController animated:NO];
    }

If you try `viewWillAppear` or `viewDidLoad` it does not work either, as it it is too soon to present anything. Previous to ios 5.0 this worked fine, now the login controller is presented but before that for about 0.3 seconds you can see the presenter view.

How can you present the login screen modally, without showing the uiviewcontroller.view presenting the login screen?.

iPhone - Login screen as modal iOS > 5.0
===

For some reason presenting a view controller modally after ios 5.0 before the presenters view appears no longer works if you do this:


    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
        LoginController *loginController = [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];
        [self presentModalViewController:loginController animated:NO];
    }

If you try `viewWillAppear` or `viewDidLoad` it does not work either, as it it is too soon to present anything. Previous to ios 5.0 this worked fine, now the login controller is presented but before that for about 0.3 seconds you can see the presenter view.

How can you present the login screen modally, without showing the uiviewcontroller.view presenting the login screen?.
