Question

I am trying to implement swiping a UIViewController's view up and down. This would be similar to Facebook Paper (swiping down to reveal search, post and other controls), or any other app that gives the user full control of moving the view with their finger.

Does anyone know how to do this efficiently?

Was it helpful?

Solution 2

I ended up finding that menus like this one are what I am looking for.

Though, they aren't recommended by Apple. See WWDC 2014 Videos, Designing Intuitive User Experiences.

OTHER TIPS

The simplest solution is to manage your individual view controllers with a UIPageViewController, described this way on the class reference page:

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.

You can specify UIPageViewControllerNavigationOrientationVertical as the orientation if you want the pages to move vertically, and you can also specify the gestures and animations used to transition from one view controller to the next.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top