MFMailComposeViewController
has been giving me headaches for the last 2 days...
Basically, I have an iOS7 iPhone app that uses storyboard with segues to offer both portrait and landscape views. Each view also has a tab bar at the bottom.
One of the tabs has a link enabling to send a feedback email.
I have used [self presentViewController:picker animated:YES completion:Nil];
to present MFMailComposeViewController
.
It works perfectly in Portrait mode but then when I rotate in Landscape mode then all I get is a strange view and then nothing. (the app does not crash).
I did some research and found that may be I should try to present MFMailComposeViewController
on the appDelegate viewController, so I used:
myWindAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
[appDelegate.window.rootViewController presentViewController:picker animated:YES completion:nil];
But then it complains that I am trying to display on a viewController that is not in the view...
Any help would be very very much appreciated.