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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:45:43+00:00 2026-06-14T05:45:43+00:00

I have an iPhone app with structure like Navigation controller with table -> next

  • 0

I have an iPhone app with structure like “Navigation controller with table -> next view controller with table -> QLPreviewController”. By tap in cell of table in first view controller(with navigation controller) appears new view controller with another table, by tap in cell of it shows QLPreviewController.

For example: In first table there are Groups, in second table – Documents of selected Group, and QLPreviewController for previewing selected Document.

Every ViewController in my app must to appear only in Portrait(not upside) orientation, but QLViewController must also support Landscape(left and right).

I’m setting flag canRotate to YES before QLPreviewController appear. In AppDelegate if canRotate == YES I’m return YES for any Orientation, to rotate QLPreviewController. QLPreviewControllerDelegate in method previewControllerWillDismiss:(QLPreviewController *)controller sets flag canRotate back to NO. But if orientation was Landscape before QLPreviewController dismiss, all of my ViewControllers stay in Landscape orientation…

How can I rotate ViewController back to Portrait orientation in WillDismiss method?

  • 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-14T05:45:44+00:00Added an answer on June 14, 2026 at 5:45 am

    What I did on my application (its more or less like yours) was:

    1) Set shouldRotate Yes for both screens.

    2) For the first view set the following mask:

    return UIInterfaceOrientationMaskPortrait
    

    For the second View put:

    return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscape;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone app that is based on a navigation controller. I have
I have an iPhone app that allows users to record videos and I'd like
I have an iphone app i want that befor moving to next screen it
I have an iPhone app with a tableviewcontroller. When you click a certain cell
I have an iPhone app using a UINavigationController. On the fourth controller of the
I'm building an iPhone app, with the following structure: I have the MainViewController which
I am creating an iPhone app which I would like to have a similar
I have an iPhone app that hides the status bar. However, my main view
I'm working on a multiview app for iPhone and currently have my views (VIEW)
I have an app running on the iPhone that I would like to convert

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.