DEV Community

Kiwi
Kiwi

Posted on

"Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value"

//View controller

Class MyViewController : UIViewController

@IBOutlet weak var myLabel : UILabel!
…………………………………………………………………………………………………………………
//Table view cell
Var VC : MyViewController !

@IBAction myButton(_ sender: Any ) {
VC.myLabel.text = “ hello “ }. // I get the error here

Discussion (1)

Collapse
lilkiwi profile image
Kiwi Author

I always get this error when I try to pass data to a table view cell