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 6947025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:38:26+00:00 2026-05-27T13:38:26+00:00

So I followed this thread: RootViewController Switch Transition Animation to transit the window.rootViewController from

  • 0

So I followed this thread: RootViewController Switch Transition Animation to transit the window.rootViewController from A to B to C. Code looks like this:

[UIView transitionWithView:self.window 
                  duration:0.5 
                   options: UIViewAnimationOptionTransitionFlipFromLeft 
                animations:^{
                               self.window.rootViewController = newViewController;
                } 
                completion:nil];

The problem is my app shall only support landscape, but during the rootViewController transition, the new view controller appears in portrait mode than quickly rotate to landscape mode.

I’m sure that:

  1. I’ve set UISupportedOrientation to landscape (home button right)
  2. for each viewcontroller, in the shouldAutoRotateToOrientation method, I set only for landscape

What could be the other reason?

  • 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-05-27T13:38:27+00:00Added an answer on May 27, 2026 at 1:38 pm

    I looked into this just now because I kept getting the same issue. I randomly tried the following, and it worked perfectly:

    [UIView
        transitionWithView:window 
        duration:0.5
        options:UIViewAnimationOptionTransitionCrossDissolve
        animations:^(void) {
            BOOL oldState = [UIView areAnimationsEnabled];
            [UIView setAnimationsEnabled:NO];
            [(ICApp *)sharedApplication.delegate window].rootViewController = self;
            [UIView setAnimationsEnabled:oldState];
        } 
        completion:nil];
    

    I know it’s a bit odd to disable/enable animations inside an animation block, but the cross dissolve animates, and the rotation does not — the view controller appears already rotated and ready to roll.

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

Sidebar

Related Questions

I have followed this thread now when i try to build using maven plugin
I am merging some png files to a uiimage and I followed this thread
I've followed THIS thread to remove the border that surrounds the Gallery, but the
i have followed the answer to this thread C# import excel filesheet to sql
I followed this thread . I now have: <a href=# onclick=$('#gc').load('test');>reload</a>... </span> <div id=gc>
Have followed every step correctly from this link http://msdn.microsoft.com/en-us/library/ms746621.aspx When trying to localize the
I have code in Qt that goes like this: void doSomeStuff() { ... if(blah
I followed this thread to install Mono on my Fedora box: Install Mono on
This question is related to this previous thread . I followed Tomas's suggestion using
I followed the thread in stack overflow to implemt this, but i am getting

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.