Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transitioning from XIB files to Storyboard

I currently have an XCode project that uses XIBs and would like to start using Storyboards. Is there a good way to move my XIB files into the Storyboard?

like image 204
benuuu Avatar asked Oct 17 '11 19:10

benuuu


People also ask

Which is better XIB or storyboard?

It is not to tell which one is the best. because which one is good to tell based on team requirement. If you are a single developer, it is good to use storyboard because it consumes less time. If the team consists of many developers, use xib, otherwise, it is not easy to merge the modules/tasks.

What is storyboard and XIB in Swift?

iOS Storyboards: A visual tool for laying out multiple application views and the transitions between them. NIBs (or XIBs): Each NIB file corresponds to a single view element and can be laid out in the Interface Builder, making it a visual tool as well.


1 Answers

You can do this manually one view controller at a time.

  1. Copy the view from xib (⌘ c).

enter image description here

  1. Go to storyboard and create a new view controller in it. Then select the view of that view controller and hit paste (⌘ v).

enter image description here

like image 53
Sumesh Sivan Avatar answered Nov 11 '22 12:11

Sumesh Sivan