Fix conflicts of tab gesture and button

This commit is contained in:
Bob Sun 2017-04-01 08:36:47 -07:00
parent cdd7417616
commit 8ea7da91d4
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -367,6 +367,14 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
} }
} }
} }
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if touch.view!.isKind(of: UIButton.classForCoder()) {
return false
}
return true
}
@IBAction func back(segue:UIStoryboardSegue) { @IBAction func back(segue:UIStoryboardSegue) {
} }