show multiple lines

This commit is contained in:
Bob Sun 2017-02-05 14:08:19 +08:00
parent 045fd2f1f2
commit cc91fd886a
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 7 additions and 7 deletions

View file

@ -47,6 +47,9 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(PasswordDetailTableViewController.tapMenu(recognizer:)))
tableView.addGestureRecognizer(tapGesture)
tapGesture.delegate = self
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = 52
}
func tapMenu(recognizer: UITapGestureRecognizer) {
@ -97,9 +100,5 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
override func tableView(_ tableView: UITableView, shouldShowMenuForRowAt indexPath: IndexPath) -> Bool {
return true
}
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 52
}
}