4.4. Adding a Storyboard to an Existing Project
Problem
You have already coded your app without storyboards and now you would like to start using storyboards instead handling the flow of your app manually.
Solution
Follow these steps to allow your non-storyboard apps to take advantage of storyboards:
From the File menu, choose New→New File...
In the New File dialog, make sure you have selected the Resource subcategory of the iOS category on the left. Then choose the Storyboard item on the right and press Next (see Figure 4-24).

Figure 4-24. Adding a storyboard to an existing application
In this screen, pick the Device Family for which you want to create your storyboard. If your app is an iPhone- or iPad-only app, pick the appropriate device family. If your app is universal, you will need to select one device family now, create the storyboard file, and then come back and create another one for your other device family. Once you are done, press the Next button.
Now select where to save your storyboard. I had a universal app based on the Single View Application template, so I have now created two storyboard files under the names StoryboardiPhone.storyboard and StoryboardiPad.storyboard.
In your project structure, find the Info.plist file. Note that this .plist file might have been stored under a different name. For instance, I have named my project
Adding a Storyboard to an Existing Project
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access