Skip to content

Commit

Permalink
Fixing formatting in mailcomp snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 15, 2013
1 parent 51bca05 commit 57c67a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mailcomp.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ - (void)presentModalMailComposerViewController:(BOOL)animated {
[composeViewController setMessageBody:<#Body#> isHTML:YES];
[composeViewController setToRecipients:@[<#Recipients#>]];

[self presentViewController:composeViewController animated:animated completion:nil];
[self presentViewController:composeViewController animated:animated completion:nil];
} else {
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) message:NSLocalizedString(@"<#Cannot Send Mail Message#>", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil] show];
}
Expand All @@ -30,7 +30,6 @@ - (void)mailComposeController:(MFMailComposeViewController *)controller
{
if (error) {
NSLog(@"%@", error);

}

[self dismissViewControllerAnimated:YES completion:nil];
Expand Down

0 comments on commit 57c67a8

Please sign in to comment.