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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top