-
Keep a property in your view controller called
selectedRow, which represents the index of a row that represents the checked item in a table section. -
In your view controller’s
-tableView:cellForRowAtIndexPath:delegate method, set theaccessoryTypeof thecelltoUITableViewCellAccessoryCheckmarkif the cell’sindexPath.rowequals theselectedRowvalue. Otherwise, set it toUITableViewCellAccessoryNone. -
In your view controller’s
-tableView:didSelectRowAtIndexPath:delegate method, set theselectedRowvalue to theindexPath.rowthat is selected, e.g.:self.selectedRow = indexPath.row