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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:48:23+00:00 2026-06-14T06:48:23+00:00

Possible Duplicate: Problem pushViewController from Landscape to Portrait In my app some of the

  • 0

Possible Duplicate:
Problem pushViewController from Landscape to Portrait

In my app some of the view controller supports both landscape and portrait, while some supports only portrait.

I have 3 view controllers FirstVC, SecondVC and ThirdVC. I want :

  • FirstVC and ThirdVC supports both landscape and Portrait
  • SecondVC should support only portrait.

For that I :

  • override shouldAutorotateToInterfaceOrientation in all View Controller
  • return UIInterfaceOrientationIsPortrait(interfaceOrientation); in SecondVC
  • returned YES in other two.

When I push SecondVC from FirstVC (in landscape mode), my SecondView is not shifting to portrait, it remains in landscape. But when I rotate SecondVC to portrait, it view rotate accordingly and again when I rotate, this time it remain in portrait does not change to landscape.

I hope I am clear.

Please can anyone know where I am doing wrong? Thanks in advance!

  • 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-14T06:48:25+00:00Added an answer on June 14, 2026 at 6:48 am

    Have a look a this post Problem pushViewController from Landscape to Portrait

    You have to present the VC Modally.

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

Sidebar

Related Questions

Possible Duplicate: Remove close button on jQueryUI Dialog? I am getting some problem to
Possible Duplicate: A PictureBox Problem I have a TabPage which hosts some custom PictureBox
Possible Duplicate: Problem calling a Local HTML File from XCode I am using the
Possible Duplicate: Help with algorithm problem from SPOJ Came across this interview question. Given
Possible Duplicate: Paste (Python) Web Server - Autoreload Problem I have a pylons app
Possible Duplicate: Problem executing bash file I have created a bash file script and
Possible Duplicate: Problem with database in CodeIgniter Alright, I've googled this the last two
Possible Duplicate: Problem with processing individual strings stored in an array of pointers to
Possible Duplicate: GCC problem : using a member of a base class that depends
Possible Duplicate: Java - Regex problem I have list of URLs of types: http://www.example.com/pk/etc

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.