ios - Back button to another storyboard -


i creating ios app consists of 2 storyboards.

this second one:

storyboard

i targeting ios 7 cant use storyboard references. switch between storyboards handled programmatically

using code:

let viewcontroller:uiviewcontroller = uistoryboard(name: "warnings", bundle: nil).instantiateviewcontrollerwithidentifier("warningsinitialview") uiviewcontroller self.presentviewcontroller(viewcontroller, animated: true, completion: nil) 

i can second storyboard using this. can see second storyboard consists of tab controller , want (on both tabs) button point main (previous) storyboard. how should achieve this?

i have tried using code:

avalanchesbackbutton.leftbarbuttonitem = uibarbuttonitem (title: "< spät", style: uibarbuttonitemstyle.plain, target: self, action: "backbuttonclicked") 

i able achieve want using different view controllers both views , hardcoding it. there way more cleanly? implement button on container tab controller point previous storyboard?

thanks in forward

is previous viewcontroller embedded navigation controller? because "pushing" view controller automatically adds button.

self.navigationcontroller?.pushviewcontroller(viewcontroller: uiviewcontroller, animated: bool) 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -