How can I implement “drag right to dismiss” a View Controller that's in a navigation stack?

后端 未结 6 1855
忘了有多久
忘了有多久 2020-12-07 18:24

By default, if you drag right from the left edge of the screen, it will drag away the ViewController and take it off the stack.

I want to extend this functionality t

6条回答
  •  春和景丽
    2020-12-07 18:54

    You need to investigate the interactivePopGestureRecognizer property of your UINavigationController.

    Here is a similar question with example code to hook this up.

    UINavigationController interactivePopGestureRecognizer working abnormal in iOS7

提交回复
热议问题