ios - Segue from tableview to view preceded by navigation controller -


in project have slide menu 3 options in tableview. depending of selected option want segue viewcontroller1,viewcontroller2 or viewcontroller3 them preceded navigation controller.

currently i'm using segue in storyboard prototype cell viewcontroller1 "segueid" identifier, options segue viewcontroller1.

that's code in file.swift prepare segue:

override func prepareforsegue(segue: uistoryboardsegue, sender: anyobject?) {     if segue.identifier == "segueid"{         var destviewcontroller = segue.destinationviewcontroller as! uinavigationcontroller}} 

the problem comes when xcode allows me set 1 segue cell in storyboard can't point vc2 , vc3.

is there way segue different views preceded navigation controller depending of selected row tableview?

you should create segues between viewcontrollers.

do not create segue cell viewcontrollers.

then after select cell should decide segue invoke.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -