I tried to embed direct calling function to restaurants in Xcode(swift).
I thought that this code would work, but it is not.
@IBAction func MakeCall(sender: AnyObject) {
var url : NSURL = NSURL(string: "tel://555555555"))!
UIApplication.sharedApplication().openURL(url)
but doesn't work. neither "sms:// "mailto//.
Is there any other function to make calling?
thank you.