开发者

How to duplicate a .xib file?

I see there's no "duplicate" when I right click on a .xib. So is the way to do it: just to go to finder, copy the file to another name, and then drag it to my开发者_C百科 resources? Would that be all I'd need to do?

[Note: just wondering if there's other files or settings I need to bother with.]


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜