标签:style blog io color ar os 使用 sp for
方案:
讨论:
例子:
NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithDictionary:@{ @"FirstName":@"Anthony", @"Last Name" : @"Robbins", @"Age" : @51 }]; NSArray *arrayOfAnthonysChildren = @[ @"Anthony‘s Son 1", @"Anthony‘s Daughter 1", @"Anthony‘s Son 2", @"Anthony‘s Son 3", @"Anthony‘s Daughter 2" ]; [dictionary setValue:arrayOfAnthonysChildren forKey:@"children"];
将字典序列化为JSON对象
iOS网络: 把Array和Dictionaries序列化成JSON对象
标签:style blog io color ar os 使用 sp for
原文地址:http://www.cnblogs.com/safiri/p/4090108.html