Directory entry cannot be long pressed

This commit is contained in:
Bob Sun 2017-03-02 15:57:39 +08:00
parent 301309f0cc
commit c79624caf0
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -174,12 +174,13 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
} else {
cell.textLabel?.text = "\(entry.title)"
}
let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:)))
longPressGestureRecognizer.minimumPressDuration = 0.6
cell.addGestureRecognizer(longPressGestureRecognizer)
} else {
cell.textLabel?.text = "\(entry.title)/"
}
let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:)))
longPressGestureRecognizer.minimumPressDuration = 0.6
cell.addGestureRecognizer(longPressGestureRecognizer)
return cell
}