I want to transfer HTML from my app to the iPhone mail application. I already have the HTML text - lest say <span style=\'color:red\'>Test</span> I can place this to U
I've got HTML copy working so it pastes into the built-in Mail and Notes apps properly. It looks like this:
NSString *htmlContent = @"This is HTML";
NSString *content = @"This is HTML!";
NSDictionary *dict = @{(NSString *)kUTTypeText: content, (NSString *)kUTTypeHTML: htmlContent};
[[UIPasteboard generalPasteboard] setItems:@[dict]];
To get access to those type constants, you need to import this:
#import