Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
特别是因为您刚刚开始,我建议您查看RESTful 服务。 API 本质上是使用 HTTP GET、PUT、POST 或 DELETE 的 URL。输出可以是 XML、JSON,无论您想要什么。构建和测试非常简单。而且由于 API 非常简单,因此您不一定需要向项目中添加另一个库并增加代码大小。
本书的第二章iPhone Games Projects讲述了如何使用RESTful排名系统将 iPhone 游戏的游戏分数记录到服务器上。
Particularly because you're starting out, I would suggest looking at RESTful services. The API is essentially a URL using HTTP GET, PUT, POST, or DELETE. The output can be XML, JSON, whatever you want. Very simple to construct and test. And because the API is so simple, you don't necessarily need to add another library to your project and increase the code size.
The second chapter of the book iPhone Games Projects talks about how to use a RESTful rankings system to record game scores to a server from an iPhone game.
我认为您不需要该主题的书籍。尝试使用一些 API 让您的生活更轻松,并检查一些代码示例。例如:
对于 JSON,SBJSON 是一个标准: https://github.com/stig/json-framework /
对于 XML,请看一下这个 Apple 示例:https://developer.apple.com/library/ios/#samplecode/SeismicXML/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007323
I don't think you need books for that subject. Try using some API's to make your life easier, and check some code samples. For example:
For JSON, SBJSON is a standard: https://github.com/stig/json-framework/
For XML, have a look at this Apple example: https://developer.apple.com/library/ios/#samplecode/SeismicXML/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007323
从在线数据库检索信息的一种简单方法是使用 PHP。您只需从 iPhone 应用程序调用位于服务器上的 PHP 文件即可。 PHP 文件接收您通过 GET/POST 方法发送的信息(如果需要),从数据库检索信息,并以 XML/JSON 形式回显该信息。
An easy way to retrieve info from a online database is to use PHP. You simply call a PHP file located on your server from your iPhone application. The PHP file takes in info you sent it via GET/POST methods (if required), retrieves info from your database, and echo's it in XML/JSON.