-3

I have something like that:

enter image description here

I want to call a number when I push on the right. I try with tel//: but it doesn't work. Is this possible?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Aris Guimerá
  • 1,095
  • 1
  • 12
  • 27
  • Possible duplicate of [How to use openURL for making a phone call in Swift?](http://stackoverflow.com/questions/24251259/how-to-use-openurl-for-making-a-phone-call-in-swift) – ZGski Apr 19 '16 at 17:47

1 Answers1

3

It appears as though your syntax tel//: is incorrect. Instead, try using tel:// like the following:

UIApplication.sharedApplication().openURL(NSURL(string: "tel://\(phoneNumber)")!)
ZGski
  • 2,398
  • 1
  • 21
  • 34