数组和字符串之间的转换
2017-07-12 本文已影响16人
骑驴去旅行
1. 数组转字符串
NSString *string = [array componentsJoinedByString:@","];,为分隔符
2.字符串转数组
NSString *str = [array componentsJoinedByString:@","];--分隔符
1. 数组转字符串
NSString *string = [array componentsJoinedByString:@","];,为分隔符
2.字符串转数组
NSString *str = [array componentsJoinedByString:@","];--分隔符