I have converted the code for making a phone call from Objective-C to Swift, but in Objective-C, we can set the type of the URL that we like to open (e.g. telephone, SMS, we
@ confile:
The problem is that your solution does not return to the app after the phone call has been finished on iOS7. – Jun 19 at 13:50
&@ Zorayr
Hm, curious if there is a solution that does do that.. might be a restriction on iOS.
use
UIApplication.sharedApplication().openURL(NSURL(string: "telprompt://9809088798")!)
You will get a prompt to Call/Cancel but it returns to your application. AFAIK there is no way to return (without prompting)