0

In an iPhone application, what is the best way to retrieve data from an online database? (either SQLite or mysql)

What i want to achieve is to read and write online data within my application.

Also, how developers retrieve info to their apps from a server side resource (xml, json, database table etc.)?

Cezar
  • 55,636
  • 19
  • 86
  • 87
Ataman
  • 2,530
  • 3
  • 22
  • 34
  • this question is a bit vague--do you already have a remove database set up? If not, you might try something like Parse – nielsbot Jun 17 '12 at 20:34
  • I dont already have one, but it should be a server side database. Thats what i meant by online. Sorry for the confusion. – Ataman Jun 17 '12 at 20:41
  • yeah--maybe check out Parse--it's a key-value back end in the cloud. I haven't used it, but sounds like just what you might need, at least to start (here: https://parse.com/) – nielsbot Jun 17 '12 at 21:32

2 Answers2

1

Use REST interface to interact with online services. Check out RestKit for adding REST to your iOS app.

jpalten
  • 533
  • 4
  • 8
0

Dont access the database from your iOS app i discourage that, always create a RESTful layer over it, its more secure and you could benefit from the RESTful layer in lots of additional ways.

Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56