NSString *originTel = @"13722223333";
NSString *tel = [originTel stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"];
NSLog(@"tel:%@",tel);
//输出
tel:137****3333
NSString *tel = [originTel stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"];
NSLog(@"tel:%@",tel);
//输出
tel:137****3333