- In your example, you're presenting ModalViewController as following flow in storyboard:
ViewController --(present modally segue)--> ModalViewController
- 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!