I am trying to go to the view controller. segue identifier is βOrangeβ (another view controller is an orange view only). The view controller is taken out of the storyboard and connected to the image view in my main controller. I want to call this using gesture recognizer. Therefore, when a panorama is detected, it simply goes to the view controller.
This is my attempt:
@IBOutlet var panGesture: UIPanGestureRecognizer! @IBAction func onPan(sender: UIPanGestureRecognizer) { if panGesture.state == .Ended { print("panned") performSegueWithIdentifier("Orange", sender: sender) } }
However, this does not work. I know that it detects panning, but it does not complete the session.
I read how to introduce segue from iOS. How to do a software launch using fast .
source share