Skip to content

Commit

Permalink
Fixing optional textLabel property on cells
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 21, 2014
1 parent 9016949 commit 69e626f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 69e626f

Please sign in to comment.