且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

UIPanGestureRecognizer弹出UIViewController

更新时间:2023-02-17 13:16:23

我认为您要查找的内容已经内置在

I think what you are looking for is already built-in with the interactivePopGestureRecognizer

self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true

如果您想制作一些自定义或其他动画,那么我认为您需要检查过渡.这是一篇进行自定义转换的好文章: https://medium.com/swift2go/simple-custom-uinavigationcontroller-transitions- fdb56a217dd8

if you want to make some custom or different animation then I think you need to check transitions. Here's a good article to make custom transitions: https://medium.com/swift2go/simple-custom-uinavigationcontroller-transitions-fdb56a217dd8