If the membership attribute was UITableViewCellAccessoryNone, then the expression network will set it to UITableViewCellAccessoryCheckmark.
If the membership attribute was UITableViewCellAccessoryCheckmark, then the expression network will set it to UITableViewCellAccessoryNone.
It's just a shortcut saying
if (cell.accessoryType == UITableViewCellAccessoryNone) cell.accessoryType = UITableViewCellAccessoryCheckmark else if (cell.accessoryType == UITableViewCellAccessoryCheckmark) cell.accessoryType = UITableViewCellAccessoryNone
Definitely an example of running code ... I would not have avoided this.
source share