Commit 8e380642 authored by Philip Brechler's avatar Philip Brechler

Actually show the bytes in Hatchery *doh*

parent 35f17dee
......@@ -27,7 +27,7 @@ class HatcheryDetailViewController: UIViewController,HatcheryClientDelegate {
override func viewWillAppear(_ animated: Bool) {
self.title = eggToShow?.name
self.descriptionTextView?.text = eggToShow?.eggDescription
self.metaDataLabel?.text = String.init(format: "Revision %@ • %d Downloads • %@ • %d Bytes", (eggToShow?.revision)!,(eggToShow?.downloadCounter)!,(eggToShow?.category)!,(eggToShow?.sizeOfContent)!)
self.metaDataLabel?.text = String.init(format: "Revision %@ • %d Downloads • %@ • %.0f Bytes", (eggToShow?.revision)!,(eggToShow?.downloadCounter)!,(eggToShow?.category)!,(eggToShow?.sizeOfContent)!)
super.viewWillAppear(animated)
}
......
......@@ -82,7 +82,7 @@ class HatcheryRootTableViewController: UITableViewController,HatcheryClientDeleg
}
cell.eggNameLabel?.text = eggForCell.name
cell.metaDataLabel?.text = String.init(format: "Revision %@ • %d Downloads • %@ • %d Byte", (eggForCell.revision)!,(eggForCell.downloadCounter)!,(eggForCell.category)!,(eggForCell.sizeOfContent!))
cell.metaDataLabel?.text = String.init(format: "Revision %@ • %d Downloads • %@ • %.0f Byte", (eggForCell.revision)!,(eggForCell.downloadCounter)!,(eggForCell.category)!,(eggForCell.sizeOfContent!))
return cell
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment