views:

47

answers:

1

Hi,

What's the best way to implement showing a number in a small circle on a UITableView row, much like is seen on the 'Inbox' row in the image below?

alt text

Thanks,

+1  A: 

You can add a button in a UITableViewCell, style it and change it's text for every row inside cellForRowAtIndexPath method. You can also hide it for rows where you don't want it.

RaYell
Are there no convenient methods to do this? Seems odd that Apple left it out of UIKit given it is so common amongst so many apps?
Garry
This is a convienient method. I don't think even almighty Apple can think of every possible things developers could want with `UITableViewCell` out-of-the-box so they provided developers with the possibility of easily adjusting them to their needs.
RaYell