如何在多个应用程序中使用一个内核 [英] How to have one core in several applications
问题描述
我的目标是使用相同的核心(代码)开发多个应用,只是具有不同的 UI(颜色、资产等).
My objective is developing several apps using the same core (code) just have different UI (color, asset's, etc.).
我不知道我是否可以与 MVC 进行比较,但我想重用 Model 和 Controller 有几个 Views
I don't know if I can compare to MVC but I want to reuse the Model and Controller having several Views
重要提示:
- 可以只有一个项目吗?
- 例如创建不同的目标或其他配置项目..
- 捆绑包中只有我想要的资源(新目标对吗?)
我看到有几个应用程序在使用它(理论上),例如体育应用程序(足球等).
I saw several apps using this (theoretically) like sports apps (soccer, etc).
谢谢
**编辑**** 更多细节
**Edit**** More detail
推荐答案
我从一个工作区创建了许多应用程序.我为每个应用程序创建了单独的方案/目标.我为每个目标都有单独的资源/xib/plist/prefix/build 文件.在某些地方,特定的目标应该执行一组特定的代码.为此,我在 target'e 前缀文件中添加了独特的宏.
I create many apps from a single workspace. I have created separate schemes/targets for each apps. I have separate resources/xib/plist/prefix/build files for each targets. In some places, particular target should execute a specific set of code. For this, I have added unique macros in the target'e prefix files.
这篇关于如何在多个应用程序中使用一个内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!