Bug in Lists chapter 16

On chapters 16 page 368 there is a bug in the code. Where it says to change tableview cell for row at, it tells us to write let cell = makeCell(for: tableView) however it results in a compiler error. Was this a mistake? when I check the completed code at the end of the chapter it does not have this.

Yes, the above was a mistake, sorry about that. The correct line should be:

let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath)

2 Likes

This topic was automatically closed after 166 days. New replies are no longer allowed.