Programmatically force a UIScrollView to stop scrolling, for sharing a table view with multiple data sources

前端 未结 10 939
醉话见心
醉话见心 2020-12-08 03:04

I have a UITableView whose data source and delegate are switched between a couple of custom data source objects when the user touches a segmented control (think \"Top Paid\"

10条回答
  •  时光说笑
    2020-12-08 03:50

    You can also do self.tableView.isScrollEnabled = true/false when you get to a certain tableView.contentOffset.y value

提交回复
热议问题