Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:09:36+00:00 2026-06-08T12:09:36+00:00

Obj-C or MonoTouch C# answers are fine. The initial UIWindow’s RootViewController is a simple

  • 0

Obj-C or MonoTouch C# answers are fine.

The initial UIWindow’s RootViewController is a simple login screen.

window.RootViewController = loginScreen;

After login, I set the Root to the main app

window.RootViewController = theAppScreen;

How do I Fade-transition between the two RootViewControllers in this instance?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:09:37+00:00Added an answer on June 8, 2026 at 12:09 pm

    I might suggest a different approach that will get you your animation. Just go to the theAppScreen controller first, and if you need the user to log in, have it do the presentViewController to get to the loginScreen (you don’t have to animate this step if you want it look like it went directly to the login screen). That way, when you’ve successfully logged in, the loginScreen can just dismissViewControllerAnimated and you’ve got your animation back to the main theAppScreen. (Obviously, if you want the fade effect, don’t forget to set the controller’s modalTransitionStyle to UIModalTransitionStyleCrossDissolve.)

    If you’re dead set on changing your rootViewController, the only way I can think of doing it (and I don’t like it) would be to do something like:

    MainAppViewController *controller = [[MainAppViewController alloc] initWithNibName:@"MainAppViewController" bundle:nil];
    
    // animate the modal presentation
    
    controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    
    [self.window.rootViewController presentViewController:controller 
                                                 animated:YES
                                               completion:^{
    
        // and then get rid of it as a modal
    
        [controller dismissViewControllerAnimated:NO completion:nil];
    
        // and set it as your rootview controller
    
        self.window.rootViewController = controller;
    }];
    

    The first technique seems much cleaner to me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iPHone: We use MonoTouch, but Obj-C answers are ok. My singleton domain object takes
In Obj-C / iOS. Our UI design calls for an initial screen with options
MonoTouch preferred, but Obj-C ok too My MainWindow.xib has a NavigationView and a View.
obj = Info(name= sub,question=response_dict[question]) obj.save() After saving the data how to update another field
In Obj-C, what does it mean in simple terms; CoreData is not thread safe
Looking for the proper way to handle orientation in my MonoTouch game (although answers
//obj C version, with some - less than one second on 18,000 iterations for
My obj-c class uses a C library (the Chipmunk physics engine), which has an
because obj, the playingCard object is created inside a nested for loop does that
QObject *obj; ... if ( /* obj is already instantiated */ ) { ;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.