Initial Commit

This commit is contained in:
relikd
2020-02-07 16:08:57 +01:00
commit 017aa891ec
42 changed files with 2523 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import UIKit
class TVCRequestDetails: UITableViewController {
public var dataSource: [Int64] = []
private let dateFormatter = DateFormatter()
override func viewDidLoad() {
super.viewDidLoad()
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return dataSource.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "RequestDetailCell")!
let intVal = dataSource[indexPath.row]
let date = Date.init(timeIntervalSince1970: Double(intVal))
cell.textLabel?.text = dateFormatter.string(from: date)
return cell
}
}