IBOutlet is nil
问题 I have created a standard outlet for a view that will hold different information based on the button selected on the previous screen. @IBOutlet weak var labelView: UIView! It shows it is connected in both the story board view and on the code itself, however, every time I get to any reference to the labelView such as: if detail.description == "About" { labelView.backgroundColor = UIColor.red } Then the app crashes out with: fatal error: unexpectedly found nil while unwrapping an Optional value