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

  • SEARCH
  • Home
  • 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 7018731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:05:24+00:00 2026-05-27T23:05:24+00:00

i guess i missed something really important in the apple manuals which causes me

  • 0

i guess i missed something really important in the apple manuals which causes me having this problems.

I will describe what i want to have and what i get instaed + what i do.

Preamble:

  • goal of my work is a app having a login-screen. this screen is supposed to be placed ontop of all other views, to fade out later. so in this case i guess i already break a rule, in case i understood that “only-one-main-window-guideline” correctly.

What i want:

  • having an universal application √ check
  • having an universal application which has UIInterfaceRotation for iPad only √ check
  • not having troubles regarding uiinterfaceorientation or uideviceorientation on startup allowing me to show all views in proper dimension without having to rotate a few times to have it all properly positioned. – not checked

What i get:

  • when i start the app in landscape, which is default orientation from my views in interface-Builder, its perfeclty aligned and i can rotate all i want, its perfect, stays perfefct, hooray
  • when i start the app in portrait, i see the landscape-views flying around on the screen – each time on diffrent pace – at least that seems like. when i rotate the app now, forth and back, its all aligned as it should – also perfectly as wanted.

What i do:

  • 99% of all rotation-related settings is made in interface builder, i currently just have some did-change-methods to change background-images when rotation is done and so on.

i noticed, that even when i build the screen after device knows its orientation, it leads to this.

so in other words:

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
      [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
      [self addEventListener:UIDeviceOrientationDidChangeNotification sel:@selector(buildScreen)];
       ....

note: addEventListener is a small notification-category i created for easier handling. so no magic in here.

in build-screen i add all subviews.
at first, the actualy screen in the background, this screen will get the login as subview (which does not matter since when i add login to main-window itself, situation is the same).

So in this case, i really dont know what do do next.
Once orientation-alignment is setup, it all fits perfectly as i defined in IB.

Any help, links, code, etc, appreciated. thank you very much! i tried searching for this, just found many similar problems, no solutions. so a little sorry in case i seem to ask the very same question, a big one if i really do.

Best Regards

  • 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-27T23:05:25+00:00Added an answer on May 27, 2026 at 11:05 pm

    I did not find a proper solution, so i used multiple-xib files to get it done. It’s annoying but it works well.

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

Sidebar

Related Questions

I'm having some trouble creating functions with CoffeeScript, I guess I've missed something. For
I guess my main question is, will this always work as long as I
I guess this is a simple question. I need to do something like this:
May be I missed something, but I've already beat my head with this one.
I guess this will be a silly mistake but for me, the following returns
I have probably missed something important on QString argument manipulation. Can't find the reason
Guess that I have a TextView that I want to update it in some
I guess my general question which I googled to no luck: Is there a
I missed class this week, due to my son being sick and I missed
I have this restfull service that I want to be able to call for

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.