Snapchat-like swipe navigation between views in Xcode 6 and Swift)

前端 未结 7 643
清酒与你
清酒与你 2021-01-30 11:47

I\'ve been trying to implement swipe navigation between View Controllers in my app using the Swipe Gesture Recognizer and embeded Navigation Controller, but it doesn\'t look eve

7条回答
  •  旧巷少年郎
    2021-01-30 12:38

    The short version is to use a container view controller with a scrollview inside the controller. You then create separate view controllers for each screen you want in the application, and make those view controllers' parent the container view controller.

    A github repo with sample code can be found, here.

提交回复
热议问题