拨打TableView的电话号码

时间:2016-04-19 09:22:41

标签: ios swift uitableview

我有类似的东西:

enter image description here

当我向右推时,我想拨打一个号码。我尝试使用tel//:,但它不起作用。这可能吗?

1 个答案:

答案 0 :(得分:2)

好像您的语法tel//:不正确。相反,请尝试使用tel://,如下所示:

UIApplication.sharedApplication().openURL(NSURL(string: "tel://\(phoneNumber)")!)