Whatever Kitchen
Whatever Kitchen

Reputation: 700

How to replicate a UITableView inside a UIScrollView

I wanted to do a simple pagination inside a UIScrollView and within each page will have a TableView. For now, my first page always loaded with a UITableView, and how can I replicate it to another page too?

Is there any references link for this?

Upvotes: 0

Views: 238

Answers (1)

Karim
Karim

Reputation: 5308

Check ATPagingView : https://github.com/andreyvit/SoloComponents-iOS

I wanted to do exactly you seem to want to do, and ATPagingView helped me achieve it :)

Try the demo project, and in DemoViewController replace self.pagingView.horizontal = NO; by self.pagingView.horizontal = YES; to get horizontal paging instead of vertical paging

Hope this helps!

Upvotes: 2

Related Questions