有字符串“A~B^C" ,我拆分为 "A", "B" 和 "C"?
NSString *str = @"A~B^C";
NSArray *arr = [str componentsSeparatedByCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@ "^~"]];NSLog(@"%@", arr);
有字符串“A~B^C" ,我拆分为 "A", "B" 和 "C"?
NSString *str = @"A~B^C";
NSArray *arr = [str componentsSeparatedByCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@ "^~"]];