//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
Top comments (1)
I always get this error when I try to pass data to a table view cell