Fix tabbar tapping double tapping issue

This commit is contained in:
Bob Sun 2018-01-16 21:54:00 -08:00
parent 7e5d286065
commit 4f74632789
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 6 additions and 2 deletions

View file

@ -203,7 +203,6 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
override func viewDidLoad() {
super.viewDidLoad()
tabBarController!.delegate = self
searchController.searchBar.delegate = self
tableView.delegate = self
tableView.dataSource = self
@ -234,6 +233,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
tabBarController!.delegate = self
if let path = tableView.indexPathForSelectedRow {
tableView.deselectRow(at: path, animated: false)
}