ios开发之--NSString和NSArray互转

将string字符串转换为array数组

 NSArray  *array = [Str componentsSeparatedByString:@","];//分隔符逗号



将array数组转换为string字符串

 

 NSString *tempString = [mutableArray componentsJoinedByString:@","];//分隔符逗号

原文地址:https://www.cnblogs.com/hero11223/p/7567003.html