componentsJoinedByString 和 componentsSeparatedByString 的方法的区别

将string字符串转换为array数组

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

将array数组转换为string字符串

 

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

posted @ 2015-10-10 17:49  上官元空  阅读(287)  评论(0编辑  收藏  举报