将string字符串转换为array数组
NSString *Str = @"a,s,c,g,f";
NSArray *array = [Str componentsSeparatedByString:@","];
==反向方法
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","];
注意 , 是字符串的分隔符
将string字符串转换为array数组
NSString *Str = @"a,s,c,g,f";
NSArray *array = [Str componentsSeparatedByString:@","];
==反向方法
将array数组转换为string字符串
NSString *tempString = [mutableArray componentsJoinedByString:@","];
注意 , 是字符串的分隔符