iPhone MFMailComposeViewController's "cancel" button displays Action Sheet w/ incorrect orientation.
Posted
by user211790
on Stack Overflow
See other posts from Stack Overflow
or by user211790
Published on 2010-04-26T01:23:16Z
Indexed on
2010/04/26
1:33 UTC
Read the original article
Hit count: 881
I've been trying to add in-app email functionality and have been somewhat successful.
The MailCompose view is displayed properly.
But when "Cancel" is pressed the Action Sheet with "Delete", "Save as Draft" and "Cancel" animates in from the left as if the view controller is set to portrait mode*, yet the width (or height depending on how you look at it) is that of an action sheet in landscape mode as seen in the following image:
http://dansandland.com/storage/screen-shot-2.png
*The view controller is set to Landscape Left, both in the plist file and the shouldAutorotateToInterfaceOrientation method of all view controllers.
MFMailComposeViewController code in a view controller:
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"In app email..."];
[controller setMessageBody:@"...email body." isHTML:NO];
[self presentModalViewController:controller animated:YES];
[controller release];
Any ideas?
© Stack Overflow or respective owner