Fix tag number

This commit is contained in:
Bob Sun 2017-04-24 10:56:18 -07:00
parent b35d79031d
commit 86cb8a84cd
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 57 additions and 57 deletions

View file

@ -31,9 +31,9 @@ class CommitLogsTableViewController: UITableViewController {
formatter.timeStyle = .medium
let dateString = formatter.string(from: commits[indexPath.row].commitDate)
let author = cell.contentView.viewWithTag(100) as? UILabel
let dateLabel = cell.contentView.viewWithTag(101) as? UILabel
let messageLabel = cell.contentView.viewWithTag(102) as? UILabel
let author = cell.contentView.viewWithTag(200) as? UILabel
let dateLabel = cell.contentView.viewWithTag(201) as? UILabel
let messageLabel = cell.contentView.viewWithTag(202) as? UILabel
author?.text = commits[indexPath.row].author?.name
dateLabel?.text = dateString
messageLabel?.text = commits[indexPath.row].message?.trimmingCharacters(in: .whitespacesAndNewlines)