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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:27:33+00:00 2026-06-12T03:27:33+00:00

My app has view controllers subclassing shouldautorotateToInterfaceOrientation . And in it, I decides each

  • 0

My app has view controllers subclassing shouldautorotateToInterfaceOrientation. And in it, I decides each view’s rotation. This works correctly. But in iOS6, though I read documents provided Apple, I can’t understand it.

My app has navigation controller as root view controller. This navigation controller has tab controller. And the tab controller has some view controllers. I want the first view controller (in tab controller) viewed only as portrait mode and the second view controller (in tab controller) viewed both portrait and landscape mode. It works correctly in iOS5.
But I don’t know how to make it in iOS6. Although I know I should subclass supportedInterfaceOrientations, it doesn’t work when rotation happen. To my surprise it is called when a view is showing.
How to make what I want?

Thank you for reading.

  • 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-06-12T03:27:35+00:00Added an answer on June 12, 2026 at 3:27 am

    The following link might steer you to the right direction: http://code.shabz.co/post/32051014482/ios-6-supportedorientations-with-uinavigationcontroller

    Basically, you need to subclass UINavigationController and have it listen to changes in -supportedInterfaceOrientations of its topViewController. There is a sample class you can download in the blog post and also explains what code to add.

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

Sidebar

Related Questions

My app has 4 tabs. All the view controllers support rotation, and indeed are
I am looking to build an app that has 6 view controllers laid out
A question about didReceiveMemoryWarning / viewDidUnload . If my app has many view controllers,
I have created an iPad app that has 10 view controllers that swipe left
I have an iPhone app that has several different view controllers. A login screen
My App has several views,each view has a controller. I have several API resources
I have an app with a tab bar. Each tab has its own view
I have a app with a UINavigationController changing out view controllers. Each of these
I have a tab bar driven app. The app has some view controllers that
App has 4 view controllers; Menu, A, B and C, and a singleton class

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.