字符串与数组互转

将string字符串转换为array数组

 NSArray  *array = [Str componentsSeparatedByString:@","];

 

==反向方法

将array数组转换为string字符串

 NSString *tempString = [mutableArray componentsJoinedByString:@","];--分隔符
原文地址:https://www.cnblogs.com/tian-sun/p/4849761.html