What’s the best way to connect iPhone app (iOS SDK) to php/MySql backend

New to iPhone dev here. Just wondering what’s the best way to connect an iPhone app frontend (based on Cocoa) to a php/MySql based backend?

The iPhone application will frequently access and change data stored on our server.

Many thanks


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You will need to create a web service that will expose a set of APIs that are then use by your iPhone app to push/pull data. You may then choose to cache the data locally (on the iPhone) in a sqlite3 database.
The most common data transfer formats are JSON and XML.

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x