提交 69e626fc 编写于 作者: M Mattt Thompson

Fixing optional textLabel property on cells

上级 90169498
......@@ -104,14 +104,14 @@ class DetailViewController: UITableViewController {
let field = self.headers.keys.array.sorted(<)[indexPath.row]
let value = self.headers[field]
cell.textLabel.text = field
cell.textLabel?.text = field
cell.detailTextLabel!.text = value
return cell
case .Body:
let cell = self.tableView.dequeueReusableCellWithIdentifier("Body") as UITableViewCell
cell.textLabel.text = self.body
cell.textLabel?.text = self.body
return cell
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册