将string字符串转换为array数组

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

 

==反向方法

将array数组转换为string字符串

 

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

posted on 2015-12-23 16:56  丑蛋蛋  阅读(249)  评论(0编辑  收藏  举报