我想知道我的应用程序如何访问SQLLite数据库在ios应用程序 [英] I am wondering how my app accesses SQLLite database in ios App

查看:227
本文介绍了我想知道我的应用程序如何访问SQLLite数据库在ios应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一般来说,我是一个新的sqllite和数据库,到目前为止,我有一个应用程序,您输入的数据,然后存储在sqllite db文件。我只是运行在ios模拟器,所以我不知道如何实际的应用程序的工作。当我的计算机关机时,应用程序仍然能够获取数据并更新sql数据库?我想我的问题是:sqllite数据库也在云上或在某处。

Im am new to sqllite and databases in general, so far i have an app in which you enter data which is then stored on sqllite db file. I am only running on ios simulator so i am not sure how the actual app will work. Will the app still be able to fetch data and update the sql database when my computer is shut down? I guess my question is: is sqllite database also on the cloud or online somewhere.

最好的问候和感谢提前

推荐答案

我建议你使用核心数据使用iCloud.here是一个很好的文档。

I suggest you to use core data to work with iCloud.here is a nice documentation .

http://developer.apple.com/library/ios/ #DOCUMENTATION / iPhone / Conceptual / iPhoneOSProgrammingGuide / Introduction / Introduction.html

使用iCloud与SQLite数据库是可能的,只有当您的应用程序使用Core Data管理那个数据库。不支持使用SQLite接口访问iCloud中的实时数据库文件,并且可能会损坏您的数据库。但是,您可以基于SQLite创建Core Data存储,只要在设置Core Data结构时执行一些额外步骤即可。您还可以继续使用其他类型的Core Data存储,即不基于SQLite的存储,而不进行任何特殊修改。

Using iCloud with a SQLite database is possible only if your app uses Core Data to manage that database. Accessing live database files in iCloud using the SQLite interfaces is not supported and will likely corrupt your database. However, you can create a Core Data store based on SQLite as long as you follow a few extra steps when setting up your Core Data structures. You can also continue to use other types of Core Data stores—that is, stores not based on SQLite—without any special modifications.

礼貌: - http://stackoverflow.com/a/7799255/1865424

如果您有任何有关这方面的更多问题。很高兴帮助你。

If you have any More issues regarding this..Happy to help you.

这篇关于我想知道我的应用程序如何访问SQLLite数据库在ios应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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