ios - How to use Navigation Controller inside of UITabBarController with Storyboard on Swift -
ios - How to use Navigation Controller inside of UITabBarController with Storyboard on Swift -
i'm using swift. utilize navigation within of tabbar storyboard. @ first, first display show within of tab menu. when move sec display, sec display show without tab menu.
i selected segue type "show (e.g.push)"
how can maintain displaying tab menu on views?
in interface builder:
createuitabbarcontroller
, set initial view controller. create uitableviewcontroller
. select uitableviewcontroller
, go menu bar > editor > embed in > navigation controller
. select uitabbarcontroller
, ctrl-drag uinavigationcontroller
. choose relationship segue > view controllers
. now, view controller add together in uinavigationcontroller
stack presented in same uitabbarcontroller
. to perform segue first-in-stack uitableviewcontroller
connected uinavigationcontroller
, viewcontroller must of course of study first create viewcontroller, create segue in interface builder
, create identifier segue , in code perform calling appropriate function in swift like:
optional func performseguewithidentifier(_ identifier: string, sender sender: anyobject?)
here's sample on how interface builder like:
ios swift
Comments
Post a Comment