Tutorial 2 checklist Method Override

Hi - I’m sure I’ve missed something simple, but I’m working through the beginning of this tutorial and am getting an error with this:

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) → UITableView {
let cell = tableView.dequeueReusableCell(withIdentifier: “ChecklistItem”, for: indexPath)
return cell
}

It says the method does not override a method in the superclass - any ideas about what I might have done wrong please?
Thank you

You’ve specified a return type of UITableView, not UITableViewCell.

1 Like