IOS string和array相互转换
2020-11-20 本文已影响0人
夜涂黑
将string字符串转换为array数组
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
将array数组转换为string字符串
NSString *str =[array componentsJoinedByString:@","];--分隔符
将string字符串转换为array数组
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
将array数组转换为string字符串
NSString *str =[array componentsJoinedByString:@","];--分隔符