I have my viewcontroller where I define my button in this way:
@IBOutlet weak var myButton: UIButton!
in viewDidLoad
I am going to hide it in this way:
myButton.hidden = true
In iOS 9 all ok and in iOS 8 I got this error:
fatal error: unexpectedly found nil while unwrapping an Optional value
where am I wrong? I tried to check all the outlet references and it's all ok... I tried also to connect and disconnect it but I can't find the error