Checklists: Use of unresolved identifier 'label'

 override func tableView(_ tableView: UITableView,
                        cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(
        withIdentifier: "ChecklistItem", for: indexPath)

    if indexPath.row == 0 {
        label.text = row0item.text
    } else if indexPath.row == 1 {
        label.text = row1item.text
    } else if indexPath.row == 2 {
        label.text = row2item.text
    } else if indexPath.row == 3 {
        label.text = row3item.text
    } else if indexPath.row == 4 {
        label.text = row4item.text
    }
    
    
    configureCheckmark(for: cell, at: indexPath)
    return cell
}

Receiving the following error after copy/pasting this code from the book (around page 50 depending on your device): Use of unresolved identifier 'label'.

Thanks in advance for the help!

Back on page 39, you will see you that are missing one line, which goes after the β€œlet cell =” line, and before the β€œif IndexPath.row =” line:

let label = cell.viewWithTag(1000) as! UILabel