Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paging scroll view with child view controllers

Tags:

ios

scrollview

What is the best practice for implementing a horizontal scroll view with paging, with one view controller per page?

Is the PageControl example still the best way to implement this now that iOS5 has API for view controller containers/containment?

like image 246
railwayparade Avatar asked Apr 02 '12 11:04

railwayparade


1 Answers

I know this question is a little old, but as of iOS 6, UIPageViewController has a new transition style property called UIPageViewControllerTransitionStyleScroll which lets you use the page controller for a use case like yours, with simple scrolling between pages instead of the iBooks-style page curl transitions.

You should also watch the 2012 WWDC video number 223 - Enhancing User Experience with Scroll Views where they basically transition an old app that uses the method you describe to the new UIPageViewController with scroll style transition.

like image 164
markquezada Avatar answered Sep 29 '22 14:09

markquezada