add about repository view
This commit is contained in:
parent
fc3701abfc
commit
07cd49449e
4 changed files with 56 additions and 0 deletions
26
pass/Controllers/AboutRepositoryTableViewController.swift
Normal file
26
pass/Controllers/AboutRepositoryTableViewController.swift
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//
|
||||
// AboutRepositoryTableViewController.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Mingshen Sun on 9/2/2017.
|
||||
// Copyright © 2017 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class AboutRepositoryTableViewController: BasicStaticTableViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
navigationItemTitle = "About Repository"
|
||||
super.viewDidLoad()
|
||||
let passwordEntities = PasswordStore.shared.fetchPasswordEntityCoreData()
|
||||
tableData = [
|
||||
// section 0
|
||||
[[.type: CellDataType.detail, .title: "Passwords", .detailText: String(passwordEntities.count)],
|
||||
[.type: CellDataType.detail, .title: "Last Updated", .detailText: Utils.getLastUpdatedTimeString()],
|
||||
],
|
||||
]
|
||||
tableView.reloadData()
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue