使用菜单系统合并多个iOS应用程序 [英] Merging multiple iOS apps with a menu system

查看:91
本文介绍了使用菜单系统合并多个iOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个适用于iOS的小实用程序。我想将这些组合成一个应用程序,从菜单中访问每个实用程序。我正试图找出最好的方法来做到这一点。这些应用程序使用Core Data,这使得事情变得更加复杂。有没有任何标准方法可以做到这一点,或者只是将各个部分粘合在一起直到我开始工作?

I have several small utility apps for iOS. I want to combine these into one app with each utility accessed from a menu. I'm trying to figure out the best way to do this. The apps use Core Data which makes things slightly more complicated. Are there any standard ways of doing this or is just a matter of glueing pieces together until I get it to work?

谢谢

推荐答案

我最近在一个这样的应用程序上工作过。设计如下

I recently worked on one such application. The design was as follows

- >每个子应用程序通过提供应用程序委托的名称向容器应用程序注册。我为此保留了一个plist,它包含应用程序名称和appDelegate类的映射。

-> Each sub application registers with the container app by providing the name of it's app delegate. I'd maintained a plist for this purpose which holds a mapping of the app name and the appDelegate class.

- >每当用户选择一个应用程序时,容器应用程序将实例化app委托并添加由它返回的主视图控制器作为根视图控制器。

-> Whenever the user selects an app the container app will instantiate the app delegate and add the main view controller returned by it as the root view controller.

此设计有助于解决问题的逻辑部分。在将所有源代码编译为单个项目之前,您仍然会遇到困难。

This design helps solve the logical part of the problem. You will still have a hard time before compiling all the source code as a single project.

就核心数据而言,如果核心数据存在问题,您一定不会遇到困难。每个子应用程序都使用不同的对象库。

As far as core data is concerned you must not have a hard time with it if each of your sub application uses a different object store.

这篇关于使用菜单系统合并多个iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆