Error in checklist app

Hello, I have a error on page 43 when I tried to add configureCheckmarkForCell() in code.

Here is the code

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{
    let cell = tableView.dequeueReusableCellWithIdentifier( "ChecklistItem", forIndexPath: indexPath)
    
    let label = cell.viewWithTag(1000) as! UILabel //here you ask the table view cell for the view with tag 1000
    
    if indexPath.row % 5 == 0{
        label.text = row0text
    } else if indexPath.row % 5 == 1 {
        label.text = row1text
    } else if indexPath.row % 5 == 2 {
        label.text = row2text
    } else if indexPath.row % 5 == 3 {
        label.text = row3text
    } else if indexPath.row % 5 == 4 {
        label.text = row4text
    }

     configureCheckmarkForCell(cell, indexPath: indexPath)
 //error here, use of unresolved identifier'configureCheckmarkForCell'

    return cell
}

Thank you for the help :slight_smile:

Did you add the configureCheckmarkForCell(indexPath) method to the code too? Without it, the app won’t compile.

If you did add it, make sure you spelled the name of the method correctly. (Also, sometimes people put the method inside another method by mistake, so check for that too.)