I'm working my way through the Swift table demos, and all of them seem have this same error message under 6.0.1. Not sure how to tackle this:
try this:
cell.textLabel!.text = self.tableData[indexPath.row]
And read this article about optionals here: Optionals in Swift
Update:
A better approach is now to use:
cell.textLabel?.text = self.tableData[indexPath.row]
In Xcode 6.1.1 you have to unwrap both the cell and textLabel:
cell!.textLabel!.text = "your text"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With