LoginSignup
1
0

More than 5 years have passed since last update.

iOS10になってからNSJSONSerializationに少し変更点がありますね。

Last updated at Posted at 2016-09-21

NSJSONSerializationを利用しNSDictionaryまたはNSArrayで変換する場合、name/valueのcollectionタイプの返還タイプが違います。(NSJSONReadingMutableContainersの場合は例外です。)

  • JSON
{
    test =     {
        1 = 2;
    };
}
  • NSJSONSerializationで変換
    • 既存の場合はtestの値のタイプは__NSCFDictionaryになります。
    • iOS10の場合、testの値のタイプはNSDictionaryIまたはNSSingleEntryDictionaryI(name/valueの双が一つのみの場合)になります。

Google SDKみたいにJSONのデータを積極的に使っているところで使用法について問題が発生する可能性があります。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0