Reputation: 12820
I want the user of my app to interact with the database. So he is allowed both, to read and write data to and from the database. How would I do that if my sqlite database is not in the mainBundle but on a server ? And : Is it generally better to use Core Data over Sqlite ?
Upvotes: 0
Views: 204
Reputation: 20153
You don't make direct connections to remote databases. What you'll do is create a web service that lives on the same server as the database and exposes an interface to it. So the iPhone talks to the web service (maybe using NSURLConnection), and the web service talks to the database.
And yes, Core Data is always better than Sqlite.
Upvotes: 2