nameless
nameless

Reputation: 809

storing sqlite database in icloud?

is it possible to store SQlite into iCloud after exiting application and pulling when we open application ?but tutorials are telling to use core data only, is not possible to do it through Sqlite only?

Upvotes: 2

Views: 7246

Answers (2)

βhargavḯ
βhargavḯ

Reputation: 9836

If you have not started with sqlite database operation then it is better you can go with core data.If you deadly want to have sqlite and at this point if you are not able to switch to the coredata then Please have look at my answer at link. Hope It will be helpful to you.

Upvotes: 2

Alasdair Allan
Alasdair Allan

Reputation: 2144

The short answer is that you shouldn't use SQLite and iCloud, the tutorials are right. From the iOS App Programming Guide,

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 I'm not entirely sure you want to do what you think you want to do. Remember that if the user has enabled device backup to iCloud, your application's documents directory will be backed up. It really only makes sense to enable iCloud in your application if you're planning to use it as a synchronization tool between instances of your application (for instance between the user’s iPhone and iPad) or between platforms (and iOS and an OS X version of the application).

Upvotes: 4

Related Questions