将 SQLite DB 部署到 iPad 应用程序(通过 iTunes?) [英] Deploying SQLite DB to iPad app (via iTunes?)

查看:37
本文介绍了将 SQLite DB 部署到 iPad 应用程序(通过 iTunes?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为客户解决 iPad 应用架构问题,我得出了以下结论:

I'm solving an iPad app architecture for a client and I've come to these conclusions:

  • 我将开发一个简单的本地运行 CMS,客户可以在其中编辑内容
  • 客户端可以从此 CMS 将内容导出到 SQLite DB 文件
  • 我将开发一个 iPad 应用程序来读取和呈现这个 SQLite DB
  • 客户端必须能够更新 SQLite 数据库文件
  • iPad 应用程序不得依赖互联网连接
  • I will develop a simple, locally run CMS where the client can edit content
  • The client can from this CMS export the content to a SQLite DB file
  • I will develop an iPad application that reads and presents this SQLite DB
  • The client must be able to update the SQLite database file
  • The iPad application must not be dependent on an internet connection

我的问题是,我的客户能否通过 iTunes 从他/她的笔记本电脑(如果需要,Mac)复制这个数据库文件,以便 iPad 应用程序获得更新的 SQLite 数据库?

My question is really, can my client copy this DB file from his/her laptop (Mac if needed) via iTunes, so that the iPad application gets an updated SQLite database?

我可能会使用 Monotouch 进​​行开发,但这应该没什么区别.这严格来说是一个 iPad 应用,但我将 iPhone 作为标签包含在内,因为它们在许多方面都有关联.

I'll probably use Monotouch for development, but that shouldn't make a difference. This is strictly an iPad app, but I've included iPhone as a tag since they consociate in many aspects.

推荐答案

如果您在应用程序 Info.plist 中启用 UIFileSharingEnabled 属性,则 Documents 文件夹在以下情况下可用您将 iPad 连接到 iTunes.您可以通过这种方式向/从设备复制文件.

If you enable the UIFileSharingEnabled property in the apps Info.plist then the Documents folder becomes available when you connect the iPad to iTunes. You can copy files to/from the device this way.

这篇关于将 SQLite DB 部署到 iPad 应用程序(通过 iTunes?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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