DEV Community

Kiwi
Kiwi

Posted on

1

"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

Top comments (1)

Collapse
 
lilkiwi profile image
Kiwi

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

Warp.dev image

Warp is the #1 coding agent.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

👋 Kindness is contagious

Dive into this thoughtful piece, beloved in the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.

A sincere "thank you" can brighten someone's day—leave your appreciation below!

On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.

Okay