我正在嘗試撥打一個不使用特定號碼的號碼,而是使用在變量中被調用的號碼,或者至少告訴它在您的電話中提取該號碼。這個在變量中調用的數(shù)字是我使用解析器或從網(wǎng)站sql檢索到的數(shù)字。我做了一個按鈕,試圖用一個函數(shù)調用存儲在變量中的電話號碼,但無濟于事。一切都會幫助謝謝! 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)!) }
快速撥打電話
HUH函數(shù)
2019-11-13 16:09:45