static libraries and xib files

Discussion in 'iOS Programming' started by Chirone, Nov 8, 2009.

  1. macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #1
    if i've made a project and want to include all it's headers and xib files in another project how would i do that?

    so far i know i can make a static library which has all the header files and i can use them in other projects but i don't know how to include the xib files.
    when if the library has xib files and the header that uses it is made the program throws an error saying it can't find the xib file
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. thread starter macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #3
    there is no such thing as a framework for the iphone (so the compiler says)

    am i missing something?
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Oops, I forgot.

    Well, you *could* write your UI as code instead of nibs, but that's kind of unnecessary work. Otherwise you'll have to link in the files directly and load them via NSBundle.
     
  5. thread starter macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #5
    ah, that's a solution, no complaints by the app or compiler that way
     

Share This Page