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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:05:28+00:00 2026-05-14T06:05:28+00:00

I am trying to implement some interface changes in my app, based on the

  • 0

I am trying to implement some interface changes in my app, based on the device rotation.

My app is a view based app. So, its main view controller has a didload method.

The app starts in portrait. Almost all changes on the device orientation triggers the shouldAutorotateToInterfaceOrientation method but this method is not called when the device is put on portrait, after coming from any landscape orientation.

While debugging the app, I have put a

NSLog(@"orientation=%d", interfaceOrientation);

on my shouldAutorotateToInterfaceOrientation method, and what I see is quite strange:

  • When I run the app, shouldAutorotateToInterfaceOrientation is called 6 times before the app’s interface even appears. Every time it runs, it reports a different number for the orientation: the order it reports on console is: portrait, portrait, portrait, landscape right, landscape left, upside down) (????).

During this time the app is just beginning. The debugger reports all 6 calls coming from the app’s delegate.

So, here comes the questions:

  1. WHy shouldAutorotateToInterfaceOrientation is not being called when the device enters on portrait?
  2. Why is the delegate calling this method 6 times before the app’s is even visible, specially when no rotation is being done?

thanks.

  • 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-14T06:05:29+00:00Added an answer on May 14, 2026 at 6:05 am

    The UIViewController Class Reference seems to say that this method returns a value “indicating whether the view controller supports the specified orientation”.

    It doesn’t make any promises that the device is/isn’t rotating right now, it’s just querying to see what orientations your controller can support. Hence the statement:

    Your view controller is either capable of supporting a given orientation or it is not.

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's your sweet and simple method and no need for… May 16, 2026 at 11:41 am
  • Editorial Team
    Editorial Team added an answer If you're using a Setup project at least the .Net… May 16, 2026 at 11:41 am
  • Editorial Team
    Editorial Team added an answer Use WatiN. It's a way to automate browsers (really for… May 16, 2026 at 11:41 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm trying to implement some sort of 'just-for-me' game engine and the problem's plot
I'm trying to implement some retry logic if there is an exception in my
How can I implement background processing queues in my ASP.NET MVC web app? While
I'm trying to write a Compare method to compare properties in some POCOs using
The classes: public interface Inter { ...some methods... } public class Impl implements Inter
Im trying to implement multi-language support in my system, the other systems at work
I am trying to implement a program which calculates the mean and moment by
Hey guys I am trying to implement the twitter for posting the comments about
I'm trying to build/implement a Flash video player to play videos. I have looked
I am trying to solve a problem in Objective-C, but I don't think the

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.