将string字符串转换为array数组
NSArray *array = [string componentsSeparatedByString:@","];
==反向方法
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","]; --分隔符
将string字符串转换为array数组
NSArray *array = [string componentsSeparatedByString:@","];
==反向方法
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","]; --分隔符
本文标题:string字符串与array数组互转
本文链接:https://www.haomeiwen.com/subject/swvonttx.html
网友评论