UITableView height equal to contentSize height
问题 I have a scroll view and inside of if couple labels and a tableView. I would like for that tableView to be scrolled by a outer scrollView and not the tableView's scrollView, so what I did is to set constraint for tableView height to be equal to contentSize height. But I have this problem that it is sized correctly only when push animation is completed (and viewDidLayoutSubviews gets called, I guess) override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() tableHeightConstraint?