The easiest way is to set the accessoryView
of a standard UITableViewCell
to a UIView
. You can just make them be standard UIButtons
, set their background color and the label color and font.
If they're not meant to be interactive, then you can use a container UIView
with a UIImageView
in the background and a UILabel
in the front added as subviews.
If you want to get fancy with it you'll have to subclass UITableViewCell
and lay out the various bits yourself. It's not that difficult. The TableViewSuite
sample code shows you how.