【发布时间】:2015-01-31 07:31:50
【问题描述】:
我正在尝试拨打一个不使用特定号码的号码,而是一个在变量中被呼叫的号码,或者至少告诉它在您的手机中提取号码。在变量中调用的这个数字是我通过使用解析器或从网站 sql 中获取的数字。我做了一个按钮,试图用函数调用存储在变量中的电话号码,但无济于事。任何事情都会有所帮助,谢谢!
func callSellerPressed (sender: UIButton!){
//(This is calls a specific number)UIApplication.sharedApplication().openURL(NSURL(string: "tel://######")!)
// This is the code I'm using but its not working
UIApplication.sharedApplication().openURL(NSURL(scheme: NSString(), host: "tel://", path: busPhone)!)
}
【问题讨论】:
标签: ios swift phone-number phone-call