我在这段代码中遇到了以下错误:
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell: UITableViewCell? = tableView.dequeueReusableCellWithIdentifier("Cell") as? UITableViewCell
错误:从“UITableViewCell?”向下转型为“UITableViewCell”仅取消可选项;您是否意味着使用“!”?
有什么想法吗?
UITableViewCell?
更改为UITableViewCell!
。 - Kendel