Good day everyone, I need your help on the following : I have a swift file where I store different functions used by different Class swift files.
Here is a part of one of these functions:
strStatus = "STEP 1/8 : Downloading data..."
if myView == "C" {
CDetails().lblStatus1.text = strStatus // Here is the error
}
else if myView == "A" {
Alerts().lblStatus4.text = strStatus
}
Then I have 2 Class, CDetails and Alerts, which can call this function. Depending on the Class, a message is to be displayed in a label. However, when I execute the code I get the following error: Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
I read different topics related to this problem but was not able to sort it out. So I would be grateful if you could be of any help! I thank you in advance for your assistance on this!