...it may be irritating, but there are some things that have to be said.
I will be using a classification in this blog to help readers work their way through my thoughts. 'Abstract' and 'Concrete' will be used to describe the real world or practical relevance of my thoughts. 'Important' and 'Trivial' will be used to indicate how important I think the message is.
Hope you find some of my ramblings useful and interesting...Or maybe plain irritating...Not now Nigel.
[Concrete/Interesting] You know when sometimes a piece of code seems really simple, but it just won’t go right? The code just won’t behave properly. Fix one problem and another one pops up...Well, all I wanted was to use MFMailComposeViewController in my Cocos2d application. I’ve done it before so thought it would be a quick job. After many, many hours, I got it working, so to save you all the effort, here is what I did.Landscape and MFMailComposeViewControllerThe problem was the game is in Landscape mode and it seems the mail view controller doesn’t like landscape. Works beautifully on the iPad, but the iPhone sees the world in Portrait. The standard method to launch email is to call presentModelViewController. Here’s the sort of thing that works well in Portrait://Create the mail view controller MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"The Title"];