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

@ -136,7 +136,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
override func viewDidLoad() {
super.viewDidLoad()
tabBarController!.delegate = self
NotificationCenter.default.addObserver(self, selector: #selector(SettingsTableViewController.actOnPasswordStoreErasedNotification), name: .passwordStoreErased, object: nil)
self.passwordRepositoryTableViewCell.detailTextLabel?.text = SharedDefaults[.gitURL]?.host
touchIDTableViewCell.accessoryView = touchIDSwitch
@ -145,6 +144,11 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
setPasscodeLockTouchIDCells()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(true)
tabBarController!.delegate = self
}
private func hasTouchID() -> Bool {
let context = LAContext()
var error: NSError?