How to display “number of items” in a tableview?
-
23-09-2019 - |
Question
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 http://www.madebyfiga.com/images/misc/iPhoneNumberInCircle.jpg
Thanks,
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow