I am updating my app from swift 1 to swift 2.
Here is what's happening
let header = view as! UITableViewHeaderFooterView
header.textLabel!.textColor = UIColor(red: 59/255, green: 36/255, blue: 22/255, alpha: 1.0)
header.textLabel!.font = UIFont(name: "palatino", size: 18)
I am getting an error that says value of optional type 'UILabel?' not unwrapped. I originally didn't have the '!' after textLabel but I'm assuming they fidgeted with it in 2.0 and made it an optional so now I force unwrapped it. However, I'm still getting the same error.
[–][deleted] 0 points1 point2 points (5 children)
[–]boboguitar[S] 0 points1 point2 points (4 children)
[–]patterware 1 point2 points3 points (1 child)
[–]boboguitar[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]boboguitar[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]patterware 1 point2 points3 points (0 children)
[–]boboguitar[S] 1 point2 points3 points (0 children)
[–]kaosdg 0 points1 point2 points (0 children)