abzuwählen, wie ich eine Zeile deaktivieren kann, wenn eine andere Zeile hier ausgewählt wird i diesesWie ausgewählte Zeile
if ff.isVisitedd{
cell.accessoryType = .Checkmark
}else{
cell.accessoryType = .None
}
in meinem cellForRowAtIndexPath haben und diese in DidSelectRowAtIndexPath
if let cell = tableView.cellForRowAtIndexPath(indexPath) {
let selectedRows = tableView.indexPathsForSelectedRows! as? [NSIndexPath]
let ff: Card!
ff = cards[indexPath.row]
ff.isVisitedd = true
cell.accessoryType = .Checkmark
}
Wo wird diese gehen –
Inside the 'if let' @benfo –
Wow, das hat funktioniert, danke! –