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

前端 未结 1 1809
南笙
南笙 2020-12-29 00:26

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

1条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 01:12

    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.

    0 讨论(0)
提交回复
热议问题