How to Make the scroll of a TableView inside ScrollView behave naturally

后端 未结 13 2072
无人及你
无人及你 2020-12-07 08:22

I need to do this app that has a weird configuration.

As shown in the next image, the main view is a UIScrollView. Then inside it should have a UIPageView, and each

13条回答
  •  生来不讨喜
    2020-12-07 08:53

    In my case I'm using constraint for height like that:

    self.heightTableViewConstraint.constant = self.tableView.contentSize.height
    self.scrollView.contentInset.bottom = self.tableView.contentSize.height
    

提交回复
热议问题