使用静态库打包包 [英] Packaging a Bundle with a static library
问题描述
我有一个包含一些xib的静态库。这些在项目中基本相同。我想将xibs作为库的一部分。我可以包括他们的veiwcontroller,在调用项目中引用这些控制器,但是没有xib加载。当我右键单击库项目中的xib时,它不能是目标的一部分。
I have a static library that includes some xibs. These will basically be the same across projects. I'd like to include the xibs as part of the library. I can include their veiwcontrollers, reference these controllers in the calling project but then there isn't a xib to load. When I right click the xib in the library project, it can't be part of the target.
我想过创建一个CFPluginBundle但是创建一个新项目。我放弃了所有的IBOutlet和IBAction引用。
I thought about creating a CFPluginBundle but that creates a new project. I'd loose all of my IBOutlet and IBAction references. What is the best way to reuse xibs that also have outlets and actions to specific controllers?
推荐答案
这里有更多的讨论:
这篇关于使用静态库打包包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!