Can you reference Xib files from static libraries on the iPhone?

前端 未结 6 1746
清酒与你
清酒与你 2020-11-28 06:27

In my app, i currently have all my code separated into a static library, to make it easier to set up the xcode project targets for the actual app and for unit tests for my c

6条回答
  •  难免孤独
    2020-11-28 07:28

    Yes You can. add a xib file in your library as you would do for any normal project. Then in library project target add the xib file in copy Files section along with .a file. In your main project where you are using the library, drag and drop the xib file where .a file for library is located.

提交回复
热议问题