componentsSeparatedByString 和 componentsJoinedByString 比较

将string字符串转换为array数组

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

将array数组转换为string字符串

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

posted on 2016-05-30 17:19  哈利波特大  阅读(223)  评论(0编辑  收藏  举报