Search code examples
iosswiftxcodexib

In Xcode, how do I copy a xib file without copying outlet references


I have a xib file of a table cell layout. I have 4 more cell layouts I need to create which are similar to layout 1 in structure, but not in content. The easiest, for me, would be if I could just copy the "layout" without the outlet references and modify the differences manually. Each different xib file will have a different corresponding swift file.

Is this possible?


Solution

  • You need to copy paste the xib file as any file ( Do ctrl-c while you're selecting the xib class like in left rectangle) , change it's name and class , and disconnect the outlets like this by clicking X

    enter image description here