taiyang2014

字符串与数组互转

将string字符串转换为array数组

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

 

==反向方法

将array数组转换为string字符串

 

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

posted on 2015-12-04 17:18  taiyang2014  阅读(111)  评论(0编辑  收藏  举报

导航