質問

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?

役に立ちましたか?

解決 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.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top