use TableView to show password detail

This commit is contained in:
Bob Sun 2017-02-02 21:04:31 +08:00
parent 35a9c84b63
commit 8f23f609a7
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
8 changed files with 156 additions and 60 deletions

View file

@ -134,7 +134,7 @@ class PasswordsTableViewController: UITableViewController {
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "showPasswordDetail" {
if let viewController = segue.destination as? PasswordDetailViewController {
if let viewController = segue.destination as? PasswordDetailTableViewController {
let selectedIndexPath = self.tableView.indexPath(for: sender as! UITableViewCell)!
let index = sections[selectedIndexPath.section].index + selectedIndexPath.row
let password: PasswordEntity