When I try to set the a UILabel in Swift the app crashes and I get an error saying: "fatal error: unexpectedly found nil while unwrapping an Optional value" Here is my code, it crashes when I set the frame.
var newsFeed1: UILabel!
let Description = object!["Description"] as! String
newsFeed1.frame = CGRect(x: 22.5, y: 315, width: 475, height: 50)
newsFeed1.text = Description
storeTab.addSubview(newsFeed1)
newsFeed1
? You are missing the linenewsFeed1 = UILabel()
! – luk2302object
is is notnil
– Rich Tolley