xcode - storyboard viewcontroller to coded viewcontroller -
is possible connect storyboard viewcontrollers manual code-written viewcontrollers? i'm trying make app that, when internet connection established, see viewcontroller made in storyboard tools given in xcode (like stepper, progress view, , etc) , when there's no internet connection, want access coded viewcontroller doesn't use provided storyboard. how make transition viewcontroller in storyboard 1 not in storyboard? thanks!
update:image depiction of seek find: depiction
i believe wanna show storyboard programmatically?
let storyboard = uistoryboard(name: "main", bundle: nil) let vc = storyboard.instantiateviewcontroller(withidentifier: "viewcontroller") window?.rootviewcontroller = vc
don't forget add "viewcontroller" identifier viewcontroller in interface builder.
Comments
Post a Comment