|
@@ -58,6 +58,7 @@ class ProfileInfoViewController: UITableViewController {
|
|
|
super.viewDidLoad()
|
|
|
title = String.localized("pref_profile_info_headline")
|
|
|
navigationItem.rightBarButtonItem = doneButtonItem
|
|
|
+ tableView.rowHeight = UITableView.automaticDimension
|
|
|
}
|
|
|
|
|
|
// MARK: - tableviewDelegate
|
|
@@ -69,15 +70,6 @@ class ProfileInfoViewController: UITableViewController {
|
|
|
return cells[indexPath.row]
|
|
|
}
|
|
|
|
|
|
- override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
|
|
-
|
|
|
- let cell = cells[indexPath.row]
|
|
|
- if cell is AvatarSelectionCell {
|
|
|
- return AvatarSelectionCell.cellHeight
|
|
|
- }
|
|
|
- return Constants.defaultCellHeight
|
|
|
- }
|
|
|
-
|
|
|
override func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? {
|
|
|
let email = dcContext.addr ?? ""
|
|
|
let footerTitle = String.localizedStringWithFormat(
|