componentsSeparatedByString 和 componentsJoinedByString 比较

将string字符串转换为array数组

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

将array数组转换为string字符串

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

1
原文地址:https://www.cnblogs.com/fantasy3588/p/5543211.html