ios - Back button to another storyboard -
i creating ios app consists of 2 storyboards.
this second one:
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
Post a Comment