Is it possible to make a dynamic cell height programmatically and only using a frames? Without constraints, autolayout and external libraries!
In this custom tableView cell, i set frame for label with calculating height for text label:
override func layoutSubviews() {
super.layoutSubviews()
makeLayout()
}
func makeLayout() {
let sizeLabel = descriptionLabel.sizeThatFits(bounds.size)
descriptionLabel.frame = CGRect(x: 0, y: 0, width: bounds.width, height: sizeLabel.height)
}
I have view controller with tableView, where i implement his delegate with return automaticDimension, but it doesn't work