简体   繁体   English

将SQLite DB部署到iPad应用程序(通过iTunes?)

[英]Deploying SQLite DB to iPad app (via iTunes?)

I'm solving an iPad app architecture for a client and I've come to these conclusions: 我正在为客户解决iPad应用程序体系结构,并且得出以下结论:

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

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? 我的问题确实是,我的客户可以通过iTunes从他/她的笔记本电脑(如果需要的话,为Mac)复制此数据库文件,以便iPad应用程序获取更新的SQLite数据库吗?

I'll probably use Monotouch for development, but that shouldn't make a difference. 我可能会使用Monotouch进行开发,但这不会有所作为。 This is strictly an iPad app, but I've included iPhone as a tag since they consociate in many aspects. 严格来说,这是一个iPad应用程序,但由于它们在许多方面都相互关联,因此我将iPhone包括在内。

If you enable the UIFileSharingEnabled property in the apps Info.plist then the Documents folder becomes available when you connect the iPad to iTunes. 如果在应用程序Info.plist启用UIFileSharingEnabled属性,则在将iPad连接到iTunes时,Documents文件夹将变为可用。 You can copy files to/from the device this way. 您可以通过这种方式向设备复制文件或从设备复制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM