Commit 48809c93952b001aacb83768bb9e09b8b1fcd6c8
1 parent
7a035955e7
Exists in
master
and in
1 other branch
Share email
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
LifeLog/LifeLog/Utilities.m
... | ... | @@ -113,6 +113,10 @@ |
113 | 113 | } |
114 | 114 | |
115 | 115 | + (void) shareEmail : (NSString *) content withViewController:(UIViewController *)vc { |
116 | + NSString *urlEmail = @"mailto:?subject=Share from LifeLog&body="; | |
117 | + urlEmail = [urlEmail stringByAppendingString:content]; | |
118 | + urlEmail = [urlEmail stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLFragmentAllowedCharacterSet]]; | |
119 | + [[UIApplication sharedApplication] openURL: [NSURL URLWithString: urlEmail]]; | |
116 | 120 | } |
117 | 121 | @end |