문제

Hi I'm new to iOS Development. I want to design something similar to Groupon app for iPhone.
I need 4 or 5 table views (each table view is a category which lists the products in that category )which I can slide or swipe through like in the Groupon app.

I'm confused on whether I should have all the table views in one page view which can be swiped through or one page view per table view.

Any help is appreciated.

Thanks.

도움이 되었습니까?

해결책

UIPageViewController does exactly what you need:

A page view controller lets the user navigate between pages of content, where each page is managed by its own view controller object. Navigation can be controlled programmatically by your app or directly by the user using gestures. When navigating from page to page, the page view controller uses the transition that you specify to animate the change.

Here is a very nice tutorial on how to implement it:
http://www.appcoda.com/uipageviewcontroller-tutorial-intro/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top