Reputation: 231
I want to create a table view like this one with a badge on the right. Can someone suggest me how can I do to get this result? thanks
Upvotes: 0
Views: 3402
Reputation: 17877
I'm using greate open source project TDBadgedCell from Tim Davies for that purposes. It is very simple to use and configure.
Get it here: https://github.com/tmdvs/TDBadgedCell
Upvotes: 5
Reputation: 51374
AFAIK, this is not available by default. You have to customize your cell.
UILabel
.textAlignment
as UITextAlignmentCenter
.cornerRadius
.shadowColor
, shadowOffset
(a positive offest) ,etc.,text
.width
to fit the text
.accessoryView
.Upvotes: 3