**I'm doing todolist app and I need action for button, which on tapped will do change image in a cell which I tapped on it. Cell retrieves data from Firebase to UITableView.** I used button and image outlets and both reported this error:

> 
> The button from the TaskViewController to the UIButton is invalid. Outlets cannot be connected to repeating content.
> 
> 
> 

I have this code for retrieves data to cell:

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

    let arrayTasks = tasks[indexPath.row]

    cell.taskName.text = arrayTasks.content

    return cell
}

```

and I have this in Storyboard

[![enter image description here](https://i.stack.imgur.com/G0ilU.png)](https://i.stack.imgur.com/G0ilU.png)

object left of the label is button. 

The button picture is set in storyboard.

I don't know how to do it, because I don't have much experience. Please help me.