I\'m trying to structure a page similar to Twitter\'s profile page. It looks like they are using a basic UITableView
. The top profile is just the tableHeaderView. T
I tried to explain a bit here.
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