There are `TableViewController` and`ViewController`. I want to show the image in the cell `TableViewController`, provided that the track time in the`ViewController` is greater than 1.

I use this code to do it:

```
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(withIdentifier: String(format: "Cell%d", indexPath.row), for: indexPath)

    var timeString = 0
    if indexPath.row >= 0 {
        timeString = UserDefaults.standard.integer(forKey: "currentTime\(indexPath.row)")
    }
    let timeInSeconds = timeString    

    if timeInSeconds > 1 {

        //show image

    }
}

```

This code allows to show the image in the cell that was clicked. And after moving to `ViewController` and returning, the user will see the image in the cell.

But sometimes due to actions in the `ViewController` (if the track number changes) I need to show several image in several cells.

How to do it?