Twitter profile page iOS Swift dissection (Multiple UITableViews in UIScrollView)

后端 未结 3 1553
[愿得一人]
[愿得一人] 2021-01-12 06:08

hi... really how do they implement this? there are several tutorial for Twitter profile page. but they don\'t handle all possibilities... first... when you scroll

3条回答
  •  不知归路
    2021-01-12 06:36

    After a long long investigation that is how i achieve the twitter profile behaviour.

    • UnderlayScrollView
    • MasterScrollView
      • Header ViewController
      • Bottom ViewController
        • PagerTabItems [CollectionView]
        • UIPagerController or any other horizontal scroll (Parchment, XLPagerTabStrip).

    UnderlayScrollView is responsible of controlling the scroll gesture. its contentoffset is used to adjust inner scroll contentOffsets. Contentsize of the underlaying scroll is same as the masterscroll's contentsize.

    See the source code on github for more. click

提交回复
热议问题