2016-07-22 75 views

回答

0

嘗試增加你的電話號碼,並執行代碼

if let url = NSURL(string: "tel://\(phoneNumber)") { 
    UIApplication.sharedApplication().openURL(url) 
} 
0

對象庫,調速拖動添加按鈕之後到控制器,並選擇在連接領域的行動和執行功能下面。

@IBAction func buttonTapped(sender: UIButton) { 
    print("Button tapped...") 
    ... rest of the code 
}