2

does anyone know if there's a way in with 3.0+ to display attributed strings within a UITableViewCell without using a UIWebView for that? I need to display a string with linked, tappable substrings as the typical detailTextLabel. I wouldn't mind exchanging this UILabel against another type of view, but I think a UIWebView could be just too slow when rendering a table with hundrets of cells. Or does someone have opposite experiences here?

So my question is: what's the best way to achieve mixed strings in a very large table without a great performance hit?

I searched for this almost a whole day now, but I can only find old posts mentioning that there's no attributed string on the iPhone (outdated, as this was pre-3.0) and/or saying that they use a UIWebView for that. But really, I don't think this would perform very well on large tables, would it?

Many, many thanks in advance

Arne

2 Answers 2

3

NSAttributedString has valid use only since 3.2.

But you may use TTStyledTextLabel from three20.

0

You can create your own view and put it in the cell.

Have a look at Apple doc related to UITableView, I linked the section "A Closer Look at Table-View Cells" which has lots of examples how to modify UITableViewCell.

1
  • Hi, yes, I know how to customize cells, I'm already doing it, but I don't know which type of subview I could use for that. I don't want to split the text to link sub parts, because it is just one paragraph and I need to link parts of this paragraphs (like hyperlinks, so I can tap a marked word to open a view).
    – arnekolja
    Mar 13, 2010 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.