將string字符串轉(zhuǎn)換為array數(shù)組
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
將array數(shù)組轉(zhuǎn)換為string字符串
NSString *str = [array componentsJoinedByString:@","];--分隔符
將string字符串轉(zhuǎn)換為array數(shù)組
NSArray *array = [str componentsSeparatedByString:@","];--分隔符
將array數(shù)組轉(zhuǎn)換為string字符串
NSString *str = [array componentsJoinedByString:@","];--分隔符