iOS TableHeaderView、TableFooterView 自动高度 UIView 中的设置 import UIKit class MultiLineLabelHeaderFooterView: UIView { @IBOutlet weak var contentLabel: UILabel! /* // Only override draw() if you perform custom drawing. // An empty implementation adversely affects performance during animation. override func draw(_ rect: CGRect)