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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:53:58+00:00 2026-05-26T09:53:58+00:00

My split view controller code: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { LeftViewController *hvc =

  • 0

My split view controller code:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    LeftViewController *hvc = [[[LeftViewController alloc] initWithNibName:nil bundle:nil] autorelease];    
    DetailViewController *dvc = [[[DetailViewController alloc] initWithNibName:nil bundle:nil] autorelease];
    UINavigationController *rootNav = [[[UINavigationController alloc] initWithRootViewController:hvc] autorelease];
    UINavigationController *detailNav = [[[UINavigationController alloc] initWithRootViewController:dvc] autorelease];
    UISplitViewController *svc= [[[UISplitViewController alloc] init] autorelease];
    [svc setViewControllers:[NSArray arrayWithObjects:rootNav, detailNav, nil]];
    svc.delegate = dvc;
    [window setRootViewController:svc];
    [self.window makeKeyAndVisible];
    return YES;
}

DetailViewController.m and LeftViewController.m both contain

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    NSLog(@"should rotate asked to detailviewcontroller");
    return YES;
}

On the iPad simulator, I can see these many calls to shouldAutorotateToInterfaceOrientation when the app just gets launched

should rotate asked to detailviewcontroller
should rotate asked to leftviewcontroller
should rotate asked to leftviewcontroller
should rotate asked to detailviewcontroller
...
should rotate asked to leftviewcontroller   // these two lines
should rotate asked to detailviewcontroller // are repeated 13 times
...
should rotate asked to leftviewcontroller
should rotate asked to detailviewcontroller

What could be the reason behind this? I must mention I am not changing orientation of the simulator

  • 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-26T09:53:59+00:00Added an answer on May 26, 2026 at 9:53 am

    shouldAutorotateToInterfaceOrientation is meant to check whether your view supports a specific orientation or not.

    It does not necessarily mean that your device is moving / being rotated.

    You shouldn’t worry about the implementation details that lead external entities to query your view controller multiple times, and just return the appropriate value for your views.

    If you’re interested in detecting device rotations, you might decide to rely on UIDeviceOrientationDidChangeNotification.

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

Sidebar

Related Questions

I have a reasonably simple split view application adapted from iPhone code. The main
I am working on a split-view based application for the iPad. I created a
Solved Hey all, I'm currently working on a Split-View Based Application for iPad. I
The manual (Listing 5-2) says that the split view controller can be added to
I have a split view controller in my Ipad app, in which the detail
Let's say I have a split view, and I want to fill half of
In a VS2008 web site project, I have a page open in split view.
My app's main view has a uiwebview. It is white for a split second
I am using the split view template to create a simple split view that
I'm new to using the split view for creating iPad applications. When I first

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.