I want to simulate this kind of extended text: (From Twitter for iPad)
Only text with a button on a link .;) How can I put a button in a link? or make the link as cool as that?
I would like to have this view, but I should be able to select the text even when the view is not in edit mode (this is not possible in the Twitter application), but editing it is not necessarily a fantasy. A simple UITextView should be enough.
Any ideas how I can achieve this, or is there a library that I can use?
I do not want to use UIWebView, since I want to have at least 9 of these views and maybe UIWebView is slow?
thanks
EDIT
In earlier versions (iOS2.x), an undocumented API appeared in UITextView:
[myTextView setContentToHTMLString:@"<body><strong><p>Content In HTML</p></strong><p>Other Paragraph</p></body>"];
which still works in iOS4.2! (simulator test). But probably my application will be rejected; (
I also found this article that supports the theory that UITextView still supports HTML, but the API is not publicly available: http://www.lazyrobot.org.uk/2010/06/rich-text-on-iphone. html # comment-form
source share