So I\'m trying to build something rather intricate - potentially more than what the picture below shows. Anyway..
I\'m trying to have a UITableView
inside o
You can do with Observer, please try if it works
1. You have to add to tableview (which is in tableCell)
yourTableView.addObserver(self, forKeyPath: "contentSize", options: NSKeyValueObservingOptions.old, context: nil)
2. Method that observe changes
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
//height can be use as cell height,
let height = yourtableview.contentSize.height;
}
deinit {
yourtableview.removeObserver(self, forKeyPath: "contentSize")
}