zoukankan      html  css  js  c++  java
  • JSONObjectWithData方法里options參数选择解释

    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类型有关,假设返回的是字典或数组。就用第一项 

  • 相关阅读:
    省队集训Ⅱ-Day5
    省队集训Ⅱ-Day4
    省队集训Ⅱ-Day3
    省队集训Ⅱ-Day2
    省队集训Ⅱ-Day1
    并查集 Pro
    树上带修: 莫队Ⅳ
    树上骗分: 莫队Ⅲ
    带修骗分: 莫队Ⅱ
    骗分带师: 莫队Ⅰ
  • 原文地址:https://www.cnblogs.com/claireyuancy/p/7123676.html
Copyright © 2011-2022 走看看