Skip to content

Monthly Archives: May 2012

A Short story by Heinrich Böll

An American businessman was standing at the pier of a small coastal Mexican village when a small boat with just one fisherman docked. Inside the small boat were several large yellowfin tuna. The American complimented the Mexican on the quality of his fish. “How long it took you to catch them?” The American asked. “Only [...]

Programmatically show Mail settings in iOS

MFMailComposerViewController can’t handle a device without a mail account defined, a easy and nice way to get around it is to do like this: if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init]; mailController.mailComposeDelegate = (id<MFMailComposeViewControllerDelegate>) self; [mailController setMessageBody:@"Test Mail" isHTML:YES]; [self presentModalViewController:mailController animated:YES]; } else { NSString *bodyText = @"Test Mail"; NSURL *url [...]