首页 > Web开发 > 详细

JSONObjectWithData方法里options参数选择解释

时间:2015-06-29 20:33:39      阅读:584      评论:0      收藏:0      [点我收藏+]
NSJSONReadingMutableContainers 
Specifies that arrays and dictionaries are created as mutable objects.    //  创建可变的数组或字典 接收 
 
NSJSONReadingMutableLeaves 
Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString.   // 指定在JSON对象可变字符串被创建为NSMutableString的实例 
 
NSJSONReadingAllowFragments 

Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary   //  指定解析器应该允许不属于的NSArray或NSDictionary中的实例顶层对象 


测试的 每一项都用字典接收,系统也没有给我报错。难道这是给返回的data类型有关,如果返回的是字典或数组,就用第一项 

版权声明:本文为博主原创文章,未经博主允许不得转载。

JSONObjectWithData方法里options参数选择解释

原文:http://blog.csdn.net/s133315202/article/details/46683809

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!