iOS app converting the dialed number automatically

  • 1
  • Question
  • Updated 2 years ago
  • Answered

I am working on an iOS app and  writing code to make calls from that app. It is working fine for non toll free numbers, But for some number such as 18601231000 for BigBasket, it is converting the number as +1(860)1231000 which when dialed comes as wrong number. But for numbers starting with 1800 it is working fine. I am searching solution of this query and taking help from some iphone developer forum and iphone blogs. If you have answer of my query please reply me. Please check my code snippet.

private func dialNumber(phoneNumber:String) {

let phoneUrl:NSURL = NSURL(string: "tel://\(phoneNumber)")!

let application:UIApplication = UIApplication.sharedApplication()





self.ratingLabel.text = "Rate (self.selectedProvider!.providerName)' Customer Care"

callCenter.callEventHandler = {(call:CTCall!) in

switch call.callState {

case CTCallStateConnected:


case CTCallStateDisconnected:

NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ctCall")







Photo of FindNerd !

FindNerd !

  • 90 Points 75 badge 2x thumb

Posted 2 years ago

  • 1

Be the first to post a reply!