适用于iOS5的Json Parser示例 [英] Json Parser Example for iOS5
问题描述
我在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
以下是将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
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屋!