适用于iOS5的Json Parser示例 [英] Json Parser Example for iOS5

查看:93
本文介绍了适用于iOS5的Json Parser示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS5中创建了一个应用程序。



我想在网络服务器上存储和检索数据。



<为此,我想使用JSON解析器。



我使用了ray wenderlich为ios4提供的演示。我听说ios 5.有一些现成的框架在那里。所以有人对此有任何想法吗?
我使用sqlite进行数据存储。



请帮助。

解决方案

您可能想要参考经常用于Objective-C的SBJSON框架,我在我的iOS应用程序中使用了这个框架。



您可以从以下链接获得有关它的参考:



https://github.com/stig/json-framework



http://stig.github.com/json-framework/



示例代码:此处还有一个示例,如何使用SBJSON Parser解析JSON:



如何将JSON解析为Objective C - SBJSON



http://jasarien.com/?p=428



以下是将SBJSON配置到应用程序中的方法:



http://deshartman.wordpress.com/2011 / 09/02 / configuration-sbjson-framework-for-xcode-4-2 /



希望这可以帮到你。


I have created one app in iOS5.

I want to store and retrive data on web server.

For that I want to use JSON parser.

I have used demo given by ray wenderlich for ios4. I heard that for ios 5.Some ready made frameworks are there.So can anybody having any idea regarding this? I am using sqlite for data storage.

Please Help.

解决方案

You may want to refer to SBJSON Framework which is frequently used for objective-C, I have used this framework in may of my iOS Apps.

You may get a reference about it from these links:

https://github.com/stig/json-framework

http://stig.github.com/json-framework/

Example Code: Also here is an example on, How to parse JSON with SBJSON Parser:

How to parse JSON into Objective C - SBJSON

http://jasarien.com/?p=428

Here is how you need to configure SBJSON into your app:

http://deshartman.wordpress.com/2011/09/02/configuring-sbjson-framework-for-xcode-4-2/

Hope this helps you.

这篇关于适用于iOS5的Json Parser示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆