PDA

View Full Version : static libraries and xib files




Chirone
Nov 8, 2009, 02:37 PM
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



kainjow
Nov 8, 2009, 04:41 PM
Make it into a framework (bundle).

Chirone
Nov 8, 2009, 05:25 PM
there is no such thing as a framework for the iphone (so the compiler says)

am i missing something?

kainjow
Nov 8, 2009, 05:49 PM
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.

Chirone
Nov 8, 2009, 06:05 PM
ah, that's a solution, no complaints by the app or compiler that way