how to compose mail when button at index clicked in UIActionSheet?
问题 I am a bit confused on how to display mail composer when I click the email option in UIActionSheet . Here's my sample code: -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex == 0) { NSString *emailTitle = @"Test Email"; NSString *messageBody = @"iOS programming is so fun!"; NSArray *toRecipents = [NSArray arrayWithObject:@"support@email.com"]; MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init]; mc