码迷,mamicode.com
首页 > Web开发 > 详细

JSONObjectWithData方法里options參数选择解释

时间:2017-07-05 22:55:21      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:系统   fragments   evel   san   报错   one   container   containe   should   

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參数选择解释

标签:系统   fragments   evel   san   报错   one   container   containe   should   

原文地址:http://www.cnblogs.com/claireyuancy/p/7123676.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!