swift - Is Initial View Controller does work? -


i have viewcontroller , tab bar controller. want change view controller initial view controller , create segue show tab bar controller.

i have tried set new initial view controller. there 2 ways. first, check tick box "is initial view controller". second, drag arrow new screen. not show error, shows tab bar controller usual , can't find view controller either.

enter image description here

anyone know how going on. please tell me fix. thanks

you need use uinavigationviewcontroller , connect in hierarchy in similar fashion to:

uinavigationcontroller hookup

the leftmost view "view" mention, needs show uitabviewcontroller.

i've added button ease of use.

the next along (send left) uinavigationviewcontroller. no settings on here need set etc... it's pretty "plug , play" put it.

the next view (third left) uitabviewcontroller (with corresponding views it's immediate right).

the connection between uinavigationviewcontroller , uitabviewcontroller "rootviewcontroller" tab view "root view controller" e.g. primary view controller.

the segue between first view, , navigation view controller merely "show" segue. liked directly between button , navigation controller in xcode.

hope mash-up helps!

edit wrote quick mask of posted in images play with: https://dl.dropboxusercontent.com/u/61211034/stackoverflow/navgationviewcontroller.zip


Comments