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: https://developer.apple.com/library/prerelease/iOS/documentation/UIKit/Reference/UITableViewCell_Class/index.html#//apple_ref/swift/enum/UITableViewCellAccessoryType