如何创建开发工具来为 iphone 操作系统创建自定义对象实例
我打算创建一个应用程序,它将使用 7-10 个自定义类的实例,我们称它们为“书籍”,每个类将包含多个页面、一个标题、一本书包含页数的整数可能还有与特定页面相关的作者的一些注释。
我的问题是创建这些对象的最佳方法是什么。仅以编程方式将所有书籍硬编码在一起似乎很弱,如果在初始版本后添加了更多书籍,我几乎希望作者能够使用简单的桌面应用程序来构建它们。
所以我想我正在寻找一种方法来创建一个小应用程序来在桌面上创建自定义类的实例,然后将这些实例引入 iPhone 应用程序。
据我所知,我只有 iPhone 开发许可证。显然,您不必非常具体,但我正在寻找完成此类任务的方法。也许如果有一个好的方法来对它们进行硬编码,我也想听听。
我猜想,游戏开发人员可以为他的游戏制作一个关卡编辑器,这样他就不必以编程方式创建面板。
I'm setting out to create an app where it will use 7-10 instances of a custom class, lets call them "books" each class will consist of a number of pages, a title, a int of how many pages a book contains and possibly some notes of the author associated with a specific page.
My question is what is the best way of creating these objects. it seems weak to just hard-code all the books together programatically, and if there are more added after the initial release I'd almost like to have the author be able to construct them with a simple desktop app.
So I guess what I'm looking for is a way to a create a small app to create instances of a custom class on a desktop, then bring those instances into the iphone app.
I only have an iphone dev license as far as I know. Obviously you don't have to be super specific but I'm looking for ways to accomplish this type of task. Maybe if there is a good way to go about hard coding them I would like to hear about that as well.
I guess an equivalent would be a game developer making like a level editor for his game so he doesn't have to create the boards programatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 SQLite。您可以轻松创建 sqlite 数据库编辑器,或使用一些免费的编辑器。 iPhone可以原生读取sqlite数据库,只需包含该库即可。
Use SQLite. You could easily create a sqlite database editor, or use some of the free ones out there. The iPhone can read a sqlite database natively, just include the library.
格式(或任何风格的文件
您喜欢的格式),这是将数据传输到应用程序或从应用程序传输数据。
format (or whatever flavour of file
format you prefer), this is to transfer data to/from application.