Vote count:
1
I have issue when i open Email sheet from UIActivityViewController controller in ios8 then i attached array in it but it doesn't appear while opening the Mail
here message is String Message but it not appear in Mail sheet ? Here's what i have tried !!
NSMutableString* sub = [NSMutableString string];
[message appendFormat:@"\n"];
[sub appendString:@"Item Id : "];
[sub appendString:item.item_id];
UIImage *img = self.thumbnailImageView.image;
NSMutableArray *actItems = [[NSMutableArray alloc] init];
[actItems addObject:message];
[actItems addObject:sub];
if(img != nil)
{
[actItems addObject:img];
}
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:actItems
applicationActivities:nil];
activityViewController.excludedActivityTypes = @[UIActivityTypePostToFacebook,
UIActivityTypePostToTwitter,
UIActivityTypeAirDrop];
[self.navigationController presentViewController:activityViewController
animated:YES
completion:^{}];
[activityViewController setValue:sub forKey:@"subject"];
activityViewController.popoverPresentationController.sourceView = parentView;
asked 2 mins ago
UIActivityViewController for iOS8 issue
Aucun commentaire:
Enregistrer un commentaire