Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mriddle committed Apr 27, 2016
1 parent 8486e41 commit 91908ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Checklists/ChecklistViewController.swift"
timestampString = "483431293.296945"
timestampString = "483433068.392792"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
startingLineNumber = "37"
endingLineNumber = "37"
landmarkName = "tableView(_:cellForRowAtIndexPath:)"
landmarkType = "5">
</BreakpointContent>
Expand Down
4 changes: 4 additions & 0 deletions Checklists/ChecklistItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class ChecklistItem {
self.text = text
self.checked = checked
}

func toggleChecked() {
checked = !checked
}


}
2 changes: 1 addition & 1 deletion Checklists/ChecklistViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class ChecklistViewController: UITableViewController {

if let cell = tableView.cellForRowAtIndexPath(indexPath) {
let item = items[indexPath.row]
item.checked = !item.checked

item.toggleChecked()
configureCheckmarkForCell(cell, withChecklistItem: item)
}

Expand Down

0 comments on commit 91908ae

Please sign in to comment.