NSString* search = @"擦擦擦";
NSString* replace = @"***";
NSMutableString*mstr = [[NSMutableStringalloc]initWithString:@"dafkasdhf擦擦擦kasddsf"];
NSRangerange = [mstr rangeOfString:search];
[mstr replaceCharactersInRange:range withString:replace];
NSLog(@"____________%@",master);
网友评论