Make commit logs align

This commit is contained in:
Bob Sun 2017-03-11 00:10:56 -08:00
parent 3964ca64ed
commit 35a5270166
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 30 additions and 19 deletions

View file

@ -29,8 +29,10 @@ class CommitLogsTableViewController: UITableViewController {
formatter.dateStyle = DateFormatter.Style.short
formatter.timeStyle = .none
let dateString = formatter.string(from: commits[indexPath.row].commitDate)
cell.textLabel?.text = dateString
cell.detailTextLabel?.text = commits[indexPath.row].message
let dateLabel = cell.viewWithTag(101) as! UILabel
let messageLabel = cell.viewWithTag(102) as! UILabel
dateLabel.text = dateString
messageLabel.text = commits[indexPath.row].message
return cell
}
}