i\'m trying to return different cells in a tableView. Normally in this case i would return different cells and then return nil at the bottom, but in this case it gives me an
You are only declaring the last var cell: UITableViewCell! - you are not initialising it. You need to do something like
var cell: UITableViewCell!
var cell = UITableViewCell(style: someStyle, reuseIdentifier: someID) return cell