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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:41:50+00:00 2026-05-19T01:41:50+00:00

My app has a welcome screen that can only be shown in portrait mode.

  • 0

My app has a welcome screen that can only be shown in portrait mode. After the user has tapped through the welcome screen I’d like to show another screen that can be used in both portrait mode and landscape.

I have set up a view controller that implements shouldAutorotateToInterfaceOrientation: returning YES only for UIInterfaceOrientationPortrait, and I add the view to the window with [window addSubView:view]. I tag this view with the tag 1.

When the user taps through the welcome view and the app moves on to the new view I do:

[[window viewWithTag:1] removeFromSuperView];
[window addSubView:myViewController.view];

Where myViewController is an instance of the 2nd view’s view controller (that handles the shouldAutorotateToInterfceOrientation method properly).

Now when I rotate, it still calls shouldAutorotateToInterfceOrientation on the original view’s view controller, and does not call it on the new view’s view controller.

This note from Apple says that only one view controller will get rotation notifications; however, I have removed the other view controller.

What am I doing wrong?

  • 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-19T01:41:51+00:00Added an answer on May 19, 2026 at 1:41 am

    actually that note doesn’t say that “only one view controller will get the notifications” but instead it says that “Only the first view controller added to UIWindow will rotate.”.
    So this might be the problem.

    To resolve it, i would say to always have a view added to your window (call it permanent), and add your welcome screen and the next views to this permanent view.

    Hope this helps.

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

Sidebar

Related Questions

I am the developer of a webapp (a task manager). This app has to
I´m working with an iPhone app which has a SQLite database set up. I
So I have a web app that i'm working on with a form that
I have an app in which some data file will be created. The app
Anybody has any idea how to make a fireworks effect by drawing on canvas?
kill quit The Debugger has exited with status 0. [Session started at 2011-03-18 14:27:30
What is the best way to handle Google AdWords in an Android app? I
I am creating a GUI application(wxPython). I need to run another (.exe) application from
Please excuse the simplicity and length of this, but I have a little test
I add the codes CFBundleDisplayName=MyAppInFrench; to the file Localizable.strings of fr.lproj and I also

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.