ios - Connecting Multiple Storyboards in Swift -


i in process of building ios app using swift , have been advised use storyboard each feature each feature have 10 views. starting main storyboard, provide advice on how transition between storyboards using swift? alternatively, there better using multiple storyboards if want avoid confusion of 50+ view main storyboard?

here ended working:

let secondvc:uiviewcontroller = uistoryboard(name: "secondstoryboard", bundle:nil).instantiateviewcontrollerwithidentifier("numbertwo") uiviewcontroller  @ibaction func changestoryboardbuttonclicked(sender: anyobject) {         presentviewcontroller(secondvc, animated: false, completion: nil) } 

when app needs move new controller that's in different storyboard, have instantiate new storyboard, instantiate initial view controller there.

let sb = uistoryboard(name: "somestoryboardname", bundle: nil) let vc2 = sb.instantiateinitialviewcontroller() uiviewcontroller // or whatever class of initial vc 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -