When multiple developers are working on the same project and we have a single storyboard, we might face conflicts in the storyboard file. And the conflicts of storyboard are difficult to resolve.
Xcode 7 provides a new feature of storyboard reference. With the help of storyboard reference we can create different storyboards and link them with segues. Here's how we use them :
Create a new storyboard and give it some name like 'MyStoryboard'
Place a view controller in MyStoryboard
Give it a storyboard ID like 'MyViewController'
Go to main storyboard
From controls tab drag and drop Storyboard Reference control into main storyboard
While the Storyboard Reference is selected, open Attributes Inspector and in Storyboard drop down select MyStoryboard and provide reference ID as MyViewController
Connect this storyboard reference via segue with any view controller
Now with the use of Storyboard Reference different developers can work on different storyboards and easily connect them. But this feature is only available on Xcode 7 and later.
0 Comment(s)