I am using UIActivityViewController with my iphone application to share a picture and a text.
I use this tutorial to custom the text for the differents services :
https://www.albertopasca.it/whiletrue/objective-c-custom-uiactivityviewcontroller-icons-and-text/
every thing is perfect but I need html to format the mail.
I don't find any way to format the code with html, I have html tag...
is there a way to send mail via UIActivityViewController with html format? I don't want plain text
If you return NSString containing HTML then com.apple.UIKit.activity.Mail will interpret it as HTML.
NSString *body = @"<html><body><ul><li>one</li><li>two</li></ul></body></html>";
If you want to have HTML email body and plain text Twitter tweets then create a new class adopting the UIActivityItemSource protocol and implement activityViewController:itemForActivityType:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With