Considering this code
class Cell: UITableViewCell {
@IBOutlet weak var cellLabel: UILabel!
}
EDIT: Nothing in the viewDidLoad method for the moment.
I'm trying to put text in cellLabel in this other ViewController in cellForRowAt:indexPath method
let cellText = listTableView.cellForRow(at: indexPath) as! Cell
cellText.cellLabel.text = array[indexPath.section].datas[indexPath.row].name // ERROR HERE
When I run the app I have the following error message on the second line
fatal error: unexpectedly found nil while unwrapping an Optional value
Let me know what i'm doing wrong.
Thanks :)