From 2a0bae5f04562ddf3f8b5b05eb2eb7d8e0c8fd20 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Fri, 3 Feb 2017 13:20:03 +0800 Subject: [PATCH] fix bug --- pass/PasswordsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pass/PasswordsViewController.swift b/pass/PasswordsViewController.swift index 1e5839e..d997b91 100644 --- a/pass/PasswordsViewController.swift +++ b/pass/PasswordsViewController.swift @@ -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