将string字符串转换为array数组
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
将array数组转换为string字符串
NSString *str =[array componentsJoinedByString:@","];--分隔符
将string字符串转换为array数组
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
将array数组转换为string字符串
NSString *str =[array componentsJoinedByString:@","];--分隔符
本文标题:IOS string和array相互转换
本文链接:https://www.haomeiwen.com/subject/yradiktx.html
网友评论