Skip to content

UIPanGestureRecognizer only returns state Began and Cancelled when I put ModalViewController in an UINavigationController #3

Description

@thaiduy
  1. In your example, you're presenting ModalViewController as following flow in storyboard:
    ViewController --(present modally segue)--> ModalViewController
  2. In my case, I need to present ModalViewController in a UINavigationController, so i set up my storyboard as following flow:
    ViewController --(present modally segue)--> UINavigationController --(relationship root view controller)--> ModalViewController

In case (1), panGestureRecognizer will return all available states: Began, Changed, Cancelled, Ended. But in case (2), it will only return Began and Cancelled. Do you have any idea why it happened and how to fix it?

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions