Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 465 forks source link

How to get tableView height with dynamic cells. #206

Closed thepacolee closed 7 years ago

thepacolee commented 7 years ago

For my view controller, I embedded a view with a RATreeView. I need to know the height of the tableView so I change the view to the same amount. The problem is that my cells in the RATreeView are dynamic. How would i get the tableView height with dynamic cells? I tried using: treeView.scrollView.systemLayoutSizeFitting(UILayoutFittingExpandedSize) but it is not correct.

Thanks, pacoleee