I'm not sure how far you can go in Storyboard directly, but the basic is you add a UIGestureRecogniser
object and connect it to your view control and configure it for a pinch gesture. Then when the UIGestureRecogniser
receives a pinch event it'll trigger the action you've hooked it up to, and you can trigger a segue
event which you can also configure within the Storyboard, or you can push the new UIViewController
onto the navigation stack.
How do I use a pinch gesture to open another viewController?
-
04-06-2022 - |
Question
I want to be able to open viewController B by pinching the screen on viewController A. Ideally I would like to be able to do this in Storyboard.
Any help/direction would be much appreciated.
Thanks
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow