Swift 3 - Custom TableViewCell dynamic height - programatically
问题 I am trying to setup dynamic height for my custom table view cell...programatically. There are many tutorials for doing it inside the storyboard, but this is about a pure programmatic solution: class CustomTableViewCell: UITableViewCell { var container: UIView = { let view = UIView() view.translatesAutoresizingMaskIntoConstraints = false return view }() override func awakeFromNib() { super.awakeFromNib() self.setupView() self.addConstraints() } func setupView() { self.contentView.addSubview