摘要:
1 //从字符串分割到数组- componentsSeparatedByString:2 NSString *str = [NSString alloc] initWithString:@"a,b,c,d"];3 NSLog(@"str:%@",str); 4 NSArray *array = [str componentsSeparatedByString:@","];5 NSLog(@"array:%@",array);6 [str release]; 1 //从数组合并元素到字符串- componentsJo 阅读全文