mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Merge pull request #652 from jesses16/master
[iOS] Fixed ShareToMail plugin function to properly accept email parameters
This commit is contained in:
@@ -113,14 +113,12 @@
|
||||
|
||||
SHKItem *item;
|
||||
|
||||
NSString *message = [arguments objectAtIndex:1];
|
||||
if ([arguments objectAtIndex:2]==NULL) {
|
||||
NSURL *itemUrl = [NSURL URLWithString:[arguments objectAtIndex:2]];
|
||||
item = [SHKItem URL:itemUrl title:message contentType:SHKURLContentTypeWebpage];
|
||||
} else {
|
||||
item = [SHKItem text:message];
|
||||
}
|
||||
|
||||
NSString *subject = [arguments objectAtIndex:1];
|
||||
NSString *body = [arguments objectAtIndex:2];
|
||||
|
||||
item = [SHKItem text:body];
|
||||
item.title = subject;
|
||||
|
||||
[SHKMail shareItem:item];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user