How to create numbers with a rounded background in a UITableViewCell (like an email application)?

In the email application on the overview page, you can see a summary of the number of new letters that you have in your accounts. Does anyone know how to create numbers on a rounded background?

email summary

+5
source share
2 answers

This is not a built-in cell style, but it is pretty easy to emulate.

Add the cell UILabelit font, textColorand backgroundColor. To get rounded corners, play with label.layer.cornerRadius.

+6
source

All Articles