开发者

How to display "number of items" in a tableview?

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?

开发者_JAVA技巧

alt text http://www.madebyfiga.com/images/misc/iPhoneNumberInCircle.jpg

Thanks,


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜