Show disclosure indicator for folder only

This commit is contained in:
Bob Sun 2017-03-02 22:10:27 +08:00
parent 8ede589c71
commit f271d4870a
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 31 additions and 20 deletions

View file

@ -196,8 +196,12 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
let longPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(longPressAction(_:)))
longPressGestureRecognizer.minimumPressDuration = 0.6
cell.addGestureRecognizer(longPressGestureRecognizer)
cell.accessoryType = .none
cell.detailTextLabel?.text = ""
} else {
cell.textLabel?.text = "\(entry.title)/"
cell.textLabel?.text = "\(entry.title)"
cell.accessoryType = .disclosureIndicator
cell.detailTextLabel?.text = "\(entry.passwordEntity?.children?.count ?? 0)"
}
return cell
}