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

前端 未结 10 991
醉话见心
醉话见心 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:36

    You could wait for the 'decelerating' property to become NO (e.g. by using KVO) and switch after that.

提交回复
热议问题