1. 数组转字符串
NSString *string = [array componentsJoinedByString:@","];,为分隔符
2.字符串转数组
NSString *str = [array componentsJoinedByString:@","];--分隔符
1. 数组转字符串
NSString *string = [array componentsJoinedByString:@","];,为分隔符
2.字符串转数组
NSString *str = [array componentsJoinedByString:@","];--分隔符
本文标题:数组和字符串之间的转换
本文链接:https://www.haomeiwen.com/subject/jhcbhxtx.html
网友评论