Vinícius Soler Vinícius Soler - 11 months ago 49
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download