OC NSString 基本操作(用到补充持续更新)时间:2022-12-06 06:18:581.将字符串拆分成数组 NSString *string = @"1,2,3,4"; NSArray *array = [string componentsSeparatedByString:@","];