I have four Storyboards that use the same ViewControllers or same code. However, I want one thing to run only on one of the storyboards. That was to turn a label's background gray. I thought I could do this by just having the label on that storyboard connected to the code only, but it didn't work because it gave me this error when I ran a different storyboard.
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
I am thinking about solving it with if statement, but I don't know how to target a specific storyboard in code. If there is another way to solve my problem, I am fine with that option, but I would like to know if it's possible to target a certain storyboard in code. I have to code it gray to keep all the gray colored objects the same shade.
Please can someone help me?
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
I am thinking about solving it with if statement, but I don't know how to target a specific storyboard in code. If there is another way to solve my problem, I am fine with that option, but I would like to know if it's possible to target a certain storyboard in code. I have to code it gray to keep all the gray colored objects the same shade.
Please can someone help me?