1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

static libraries and xib files

Discussion in 'iPhone/iPad Programming' started by Chirone, Nov 8, 2009.

  1. macrumors 6502

    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


    Make it into a framework (bundle).
  3. macrumors 6502

    there is no such thing as a framework for the iphone (so the compiler says)

    am i missing something?
  4. Moderator emeritus


    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. macrumors 6502

    ah, that's a solution, no complaints by the app or compiler that way

Share This Page