diff --git a/pass/LabelTableViewCell.xib b/pass/LabelTableViewCell.xib index f91b5ce..8c8990f 100644 --- a/pass/LabelTableViewCell.xib +++ b/pass/LabelTableViewCell.xib @@ -19,13 +19,13 @@ - - + + - + @@ -38,6 +38,7 @@ + diff --git a/pass/PasswordDetailTableViewController.swift b/pass/PasswordDetailTableViewController.swift index 61b8d6d..31b4c63 100644 --- a/pass/PasswordDetailTableViewController.swift +++ b/pass/PasswordDetailTableViewController.swift @@ -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 - } }