iOS巅峰之NSString,NSData,NSArray 之间的转换
1.将数组转换成NSData
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dataArray options:NSJSONWritingPrettyPrinted error:nil];
2.将NSData转换成NSString
NSString *fileString = [[NSString a
原创
2016-08-30 11:16:19 ·
13157 阅读 ·
0 评论