|
|
|
Ask HN: How would you do a database connection in an iphone app?
|
|
2 points
by roversoccer18
5551 days ago
|
|
I am trying to develop an iphone application that needs to connect to a database. After about an hour of googleing I found that there a lot of ways to go about doing this(SQLite database locally on the iphone, MYSQL wrapper class to connect to a database, and many other). What is the best method or convention most developers use? Does the iphone SDK have any built in NS objects to connect to a database? |
|
Remote Data: You pretty much have to go with a web service layer. The standard now-a-days is RESTful JSON. Directly connecting to a remote DB is too unreliable for the mobile world.
ASIHTTPRequest: A wrapper around network level API's for connecting to web servers. Use this.
http://allseeing-i.com/ASIHTTPRequest/