iOS----------componentsJoinedByString 和 componentsSeparatedByString 的方法的区别
程序员文章站
2023-11-21 23:03:10
将string字符串转换为array数组 NSArray *array = [Str componentsSeparatedByString:@","]; ==反向方法 将array数组转换为string字符串 NSString *tempString = [mutableArray compone ......
将string字符串转换为array数组
nsarray *array = [str componentsseparatedbystring:@","];
==反向方法
将array数组转换为string字符串
nsstring *tempstring = [mutablearray componentsjoinedbystring:@","];--分隔符
上一篇: 写一手好SQL很有必要