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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:54:31+00:00 2026-06-15T16:54:31+00:00

Got a issue with my UIVewController and rotation which I could do with some

  • 0

Got a issue with my UIVewController and rotation which I could do with some help with.

Basically, I have a view which can rotate from portrait to landscape. When it rotates to landscape, I present a different view (a chart) to my portrait one…which is an input view, based on a UITableView. This all works fine.

Now, my portrait view (and only my portrait view) also has an ‘Email’ button which when pressed, creates and presents the MFMailComposeViewController so the user can email some data.

This works ok but if the user rotates the iphone to landscape whilst on the MFMailComposeViewController view, my underlying view gets no notification of the rotation so I know to change the underlying view to the chart view. So, when the user dismisses the mail view whilst still in landscape, I get my original ‘portrait’ input view in landscape which is out of position and incorrectly displayed.

So, is there anyway I can get notifications of rotation in my original portrait ViewController when the MFMailComposeViewController is displaying so I can make underlying changes when the original view re-appears? Or, can I prevent the underlying view from rotating when the MFMailComposeViewController is rotated?

Hope that makes sense and thanks for advice.

  • 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-15T16:54:33+00:00Added an answer on June 15, 2026 at 4:54 pm

    Try implementing -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation in your parent ViewController and set it to UIInterfaceOrientationPortrait.

    You can also view what your MFMailComposeViewController is doing, but I think you’d have to subclass it and implement -(void)didRotateFromInterfaceOrientation: and then send info back via notifications or a delegate…but you shouldn’t need to with preferredInterfaceOrientationForPresentation.

    Hope this helps!

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

Sidebar

Related Questions

I got an issue which is, in my code,anyone can help will be great.
recently got an issue when loading vs 2008, it displays this... can anyone tell
I got some issue working with UINavigationalControllers for iPad. Issue : UINavigationController1 UINavigationController2 Placed
I got an issue with deleting an object from ArrayList when working on the
I got some issue with parsing, when I PHP based web service. I got
I got an issue from my client regarding the SSL setup for his website.
I believe I may be dealing with some view issues which are not allowing
i got issue with URL and getting null as response.I have also tried to
Possible Duplicate: How can I format a nullable DateTime with ToString()? got issue parsing
I've got this issue with database locking when I'm testing some threading features I've

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.