0
Every time having to hide one label
of my screen using label.isHidden = true
this error appears, I’ve seen in other questions here on the forum on the topic, however I could not understand correctly.
Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
@IBOutlet weak var txtHE: UILabel!
@IBOutlet weak var txtHS: UILabel!
@IBOutlet weak var txtHT: UILabel!
@IBOutlet weak var txtHL: UILabel!
var esconder:Bool!
override func viewDidLoad() {
super.viewDidLoad()
esconder = true
txtHE.isHidden = esco
txtHS.isHidden = esco
txtHT.isHidden = esco
txtHL.isHidden = esco
}
Okay, I’ll check it out.
– Greco