copy and paste xib files

Discussion in 'iOS Programming' started by nickculbertson, Mar 28, 2011.

  1. nickculbertson macrumors regular

    nickculbertson

    Joined:
    Nov 19, 2010
    Location:
    Nashville, TN
    #1
    Hello,
    I have two projects in which I would like to copy 4 files from the first project to the second. The files are FirstView.h, FirstView.m, FirstView.xib (build for iPhone) and FirstView.xib (build for iPad). The .h and .m files transfer fine but since the .xib files have the same name I can't drag them both over. Also there is no option to drop the ipad xib into the Resources-iPad folder. Does anybody know how to get those two files transferred?

    Thanks,
    Nick
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    Have you tried the Finder?

    Duplicate and rename xib files in Finder.
    Add to project in Xcode.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Might not even need to rename them if they are duplicated into the correct folders in Finder.
     
  4. nickculbertson thread starter macrumors regular

    nickculbertson

    Joined:
    Nov 19, 2010
    Location:
    Nashville, TN
    #4
    chown33,
    Thanks. The key word was finder. I added the files in the finder to their class folders then just add the links in the xcode project by dragging them in but not copying.
    Thanks again,
    Nick

    dejo,
    I was trying to add them to the same folder. You are correct, I didn't have to rename them.
    Thanks,
    Nick
     

Share This Page