Skip to content

Commit c18f10f

Browse files
author
cramsden@thoughtworks.com
committed
[Carson] changed the cell identifier to not be unique -- better for memory
1 parent d7b202d commit c18f10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestExample/HelloRest/HelloRest/PeopleList/PeopleListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension PeopleListViewController : UITableViewDataSource {
3131

3232
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
3333
let personForIndex = viewModel.getPersonAtIndex(indexPath.row)
34-
let cellIdentifier = "\(personForIndex.id)"
34+
let cellIdentifier = "cell"
3535
let cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier) ?? UITableViewCell(style: .Default, reuseIdentifier: cellIdentifier)
3636

3737
cell.textLabel?.text = personForIndex.name

0 commit comments

Comments
 (0)