# Checklists: Use of unresolved identifier 'label'

**URL:** <https://forums.kodeco.com/t/checklists-use-of-unresolved-identifier-label/27130>\
**Category:** iOS Apprentice\
**Created:** [March 12, 2017, 3:44pm UTC](https://forums.kodeco.com/t/checklists-use-of-unresolved-identifier-label/27130 "2017-03-12T15:44:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juztinowenz](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@juztinowenz](https://forums.kodeco.com/u/juztinowenz)\
**Post date:** [March 12, 2017, 3:44pm UTC](https://forums.kodeco.com/t/checklists-use-of-unresolved-identifier-label/27130/1 "2017-03-12T15:44:14Z")

</div>

```
 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!

---

<div class="post-metadata">

**Author:** ![sgerrard](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sgerrard/32/93812_2.png) [@sgerrard](https://forums.kodeco.com/u/sgerrard)\
**Post date:** [March 12, 2017, 4:52pm UTC](https://forums.kodeco.com/t/checklists-use-of-unresolved-identifier-label/27130/2 "2017-03-12T16:52:10Z")

</div>

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
