copy HTML to UIPasteboard
Posted
by ManniAT
on Stack Overflow
See other posts from Stack Overflow
or by ManniAT
Published on 2010-03-13T14:58:18Z
Indexed on
2010/03/13
15:05 UTC
Read the original article
Hit count: 573
Hi,
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 UIPasteBoard - but when I paste it to mail I get the html source.
When I place the same string in a HTMLView - select it there and copy it it pastes as red text in mail.
What do I have to do to place the string in the UIPasteBoard so that it pastes as red text to the mail application? I've been searching for "format types" - and found that UIPasteBoard returns "Aplle Web Archive pasteboard type" when I have the element (copied from UIWebView) in the clipboard. But setting this as type when adding the content to UIPasteBoard pastes nothing in the mail app.
Manfred
© Stack Overflow or respective owner