iOS-Swift: 在每个页面内使用tableview设计水平分页的可能方法?

iOS-Swift: Possible ways to design horizontal paging with tableview inside each page?

在每个页面内使用 tableview 设计水平分页的最佳方法(以及可能的方法)是什么?滑入滑出动画就完美了。基本上类似于 this,但使用较新的 UI 视图,如 collectionview

更新:我想做的只是将 table 拆分成 3 个页面,每页 4 个项目。

所以问题是UIPageViewController VS UIScrollView VS UICollectionView

您可以考虑使用 UIPageView,然后在每个页面上构建您的集合视图。这是一个 cocoapod 示例,听起来像您所描述的:

https://github.com/lxian/LXPageViewWithButtonsViewController

我会使用 UIPageViewController。它是内置的,非常适合在视图控制器之间水平滚动(滑动)。