将字符串切割成数组&将数组元素拼接成字符串
2016-04-08 本文已影响702人
蒲公英少年
-
将string字符串转换为array数组
NSArray *array = [Str componentsSeparatedByString:@","];//@","是分隔符 -
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","];//@","是分隔符
将string字符串转换为array数组
NSArray *array = [Str componentsSeparatedByString:@","];//@","是分隔符
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","];//@","是分隔符