Xcode 7 added new features for storyboards that is a single storyboard into multiple storyboards and link them visually viastoryboard references.
Before the feature, we have to make all the controller in single storyboard or added different storyboard, but we can not connect the story board using segue. We have to added using programmatically two story board.
Now after xcode 7.0, Using segue connect two or more storyboard.
Step of Multiple storyboard using storyboard references. Sample demo with steps.
Step 1 :
Make new project goto > file > New > Project, and give the name of the project as “MultipleStoryBoardDemo”
Step 2 : Adding UINAvigationController and make “ViewController” as rootViewController.
Step 3 : Add one button in UIViewController , Which name is “Go To Second StoryBoard”.
Now adding another storyBoard with name of “SecondMain” as below.
Step 5 :
Inside the “SecondMain” adding anotherView controller name as “SecondViewController”.
Step 6 :
Now go to “Main” StoryBoard and select ViewController, inside ViewController have a button “Go To Second StoryBoard”, adding storyboard references inside “Main” storyBoard. and give name of storyBoard as “SecondMain”, see right corner.
Demo project :
This demo project contain only two storyboard using storyboard references, You can add more storyboard and connect them using storyboard references, its very fast to get ViewController and not load to open storyboard rather then previous method of single storyboard.