Support deleting password

This commit is contained in:
Bob Sun 2017-03-21 13:16:25 -07:00
parent 1141e267d9
commit ee9776ab71
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
11 changed files with 91 additions and 53 deletions

View file

@ -192,6 +192,12 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
}
}
@IBAction func deletePassword(segue: UIStoryboardSegue) {
print("delete")
passwordStore.delete(passwordEntity: passwordEntity!)
navigationController?.popViewController(animated: true)
}
func setTableData() {
self.tableData = Array<TableSection>()
tableData.append(TableSection(title: "", item: []))