componentsSeparatedByCharactersInSet使用方法

 

NSString *str = @"A~B^C"; NSArray *arr = [str componentsSeparatedByCharactersInSet:           [NSCharacterSet characterSetWithCharactersInString:@"^~"]]; NSLog(@"%@", arr);
 
结果是:(

    A,

    B,

    C

)

 

你可能感兴趣的:(component)