Vinícius Soler Vinícius Soler - 9 months ago 30
Swift Question

Using CheckMark in swift

How to use the method in UITableViewCellAcessoryCheckMark swift? In ObjC it is clear to me, but Swift could not do likewise. My intention is to make a comparison, and this being true chekmark appear.

Answer Source

In Swift, to reference UITableViewCellAccessoryCheckMark use

cell.accessoryType = UITableViewCellAccessoryType.Checkmark

Here's the Apple docs: