ios - 如何从导航栏滑动 UIPageViewController

标签 ios uiscrollview uinavigationbar uipageviewcontroller tinder

我正在尝试制作一个 UIPageViewController,它也可以从导航栏中滑动。 Tinder ios 应用程序就是一个很好的例子。

我无法在内容 View Controller 中添加导航栏,因为导航栏是动态的,并且会在您在页面之间滑动时进行动画处理。

到目前为止我的架构是这样的:

主VC:UIVC
-里面包含了UIPageViewController
-里面包含导航栏
-包含VC1和VC2的数据

导航栏滑动输入如何影响UIPageVC?

enter image description here

最佳答案

我解决了这个问题并创建了一个关于它的 repo:

https://github.com/goktugyil/EZSwipeController

它更像是 Snapchats 导航,这意味着导航栏没有动画但效果很好。

关于ios - 如何从导航栏滑动 UIPageViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31467423/

相关文章:

ios - Swift 中的 CTCallCenter

ios - 带有类型别名的协议(protocol)中的 AssociatedType

uiscrollview - 有没有办法在 SwiftUI 中制作分页 ScrollView?

iphone - 标题和栏按钮未显示在导航栏中

ios - 带有异步加载图像的按钮作为 UINavigationItem 中的 titleView

ios - 在 Swift 3 中将 .scheduledTimer 的变量返回到 TableView Cell

python - 如何在 Apple Music 中创建个性化音乐用户 token ?

ios - 如何以编程方式滚动和停止 UIScrollView?

ios - addSubview 不适用于新创建的 ScrollView

ios - 关闭模态视图 Controller 后如何正确对齐 rightBarButtonItem?