var phone="10086";
UIApplication.sharedApplication().openURL(NSURL(string :"tel://"+"\(phone)")!)
或者
UIApplication.sharedApplication().openURL(NSURL(string :"tel://10086")!)
var phone="10086";
UIApplication.sharedApplication().openURL(NSURL(string :"tel://"+"\(phone)")!)
或者
UIApplication.sharedApplication().openURL(NSURL(string :"tel://10086")!)
转载于:https://www.cnblogs.com/csdnIOS/p/6874766.html