London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
6.5 C
New York
Wednesday, November 27, 2024

ios – Easy methods to add a giant amount of numbers in Name Listing Extension?


I have to implement a logic for including a giant amount of numbers into the Name Listing Extension.

I take advantage of this perform for producing and including numbers:

  func generatePhoneNumbers(from sample: String, to context: CXCallDirectoryExtensionContext) {
    
    func generate(present: String, index: Int) {
      if index == sample.rely {
        
        if let quantity = Int64(present) {
          context.addBlockingEntry(withNextSequentialPhoneNumber: quantity)
        }
        return
      }
      
      let char = sample[pattern.index(pattern.startIndex, offsetBy: index)]
      
      if char == "#" {
        for digit in 0...9 {
          generate(present: present + String(digit), index: index + 1)
        }
      } else {
        generate(present: present + String(char), index: index + 1)
      }
    }
    
    // Begin technology
    generate(present: "", index: 0)
  }

This method permits me so as to add most 2_000_000 numbers however I would like extra. After the 2000000th quantity I see an error

maximumEntriesExceeded

How might I load extra? Are there any methods to broaden the extension capability?

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com