How to duplicate a .xib file? How to duplicate a .xib file? xcode xcode

How to duplicate a .xib file?


The best way to do this is use cmd ⌘ ,shift, s on the xib or storyboard. Then save it with a new name or location.


Yes, that's most of what's needed. Make sure to open the nib file and verify that the connections are as you want them to be. It will act like any file you duplicate. Just give it an original name and make sure it's saved in the correct folder before you import it into the project.


yes , you can copy the the contents of the xib file by just (command+c) and paste it into another xib file by using (command +v) but by simply cop and pasting you won't get the references you need to go the properties in xib file there you need to give the class name for which you have created a new xib file and then it will give you the references.