This commit is contained in:
Bob Sun 2017-02-03 13:20:03 +08:00
parent 5ced3cadb1
commit 2a0bae5f04
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -43,7 +43,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
override func viewDidLoad() {
super.viewDidLoad()
passwordEntities = PasswordStore.shared.fetchPasswordEntityCoreData()
NotificationCenter.default.addObserver(self, selector: #selector(PasswordsTableViewController.actOnPasswordUpdatedNotification), name: NSNotification.Name(rawValue: "passwordUpdated"), object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(PasswordsViewController.actOnPasswordUpdatedNotification), name: NSNotification.Name(rawValue: "passwordUpdated"), object: nil)
generateSections(item: passwordEntities!)
tableView.delegate = self
tableView.dataSource = self