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

前端 未结 7 783
清酒与你
清酒与你 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:19

    You need a pageviewcontroller. This was originally for showing tutorials and stuff but you can put view controllers in there as well. There are tons of tutorials out there and essentially you have to apply a little bit of logic to tell the program what view controller to show it next.

    This is a pretty advanced example, but it might be of help to you:

    https://github.com/cwRichardKim/RKSwipeBetweenViewControllers

提交回复
热议问题