Reputation: 16051
A lot of advice is given telling people to to consolidate a UITableViewCell into a single view. I'm wondering how to do that and still retain tappable elements, like they do in apps such as Tweetbot.
Upvotes: 0
Views: 166
Reputation: 52227
One approach would be NSAttributedStrings.
These a bit tricky to handle, but wrapper classes exist as open source as for example TTTArrtibutedLabel
The thread you link to names the article "Fast Scrolling in Tweetie with UITableView". This article isn't online anymore, but some github projects, that call them selfs to be compliant to the article.
Actually it seems to be the trick, that UIView subclasses use -drawRect:
to to draw themselves. To use tap-able strings, see NSAttributedStrings.
PS:
Thanks the wayback machine, you can read the article, actually it is description of the GitHub project.
Upvotes: 1
Reputation: 19834
I do it by form of delegation. That view defines a protocol which the tableView's controller conforms to. Set the controller as the view's delegate and when an area is tapped, send the correct message.
Upvotes: 0