passforios/pass/UserInterface/AutoCellHeightUITableViewController.swift
Danny Moesch 8351c16d75 Compute heights of TableViewCells automatically
This is necessary because different languages need different amounts of space. Especially text fields with some more text need to be variable in their heights.
2019-02-23 14:22:27 -08:00

17 lines
412 B
Swift

//
// AutoCellHeightUITableViewController.swift
// pass
//
// Created by Danny Moesch on 17.02.19.
// Copyright © 2019 Bob Sun. All rights reserved.
//
import UIKit
class AutoCellHeightUITableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.estimatedRowHeight = 170
tableView.rowHeight = UITableViewAutomaticDimension
}
}