In my project I have a Slide Menu with 3 options in a TableView. Depending of the selected option I want to segue to the ViewController1,ViewController2 or ViewController3 all them preceded by a navigation controller.
Currently I'm using a segue in the Storyboard from the Prototype Cell to the ViewController1 with "segueid" as identifier, so all the options segue to ViewController1.
That's the code in the file.swift to prepare the segue:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "segueid"{
var DestViewController = segue.destinationViewController as! UINavigationController}}
The problem comes when XCode only allows me to set one segue from the cell in the Storyboard so I can't point VC2 and VC3.
Is there any way to segue to different views preceded by a navigation controller depending of the selected row from the tableview?