【问题标题】:confirmation dialogue is not showing when making a phone call in ios 10.2.1 but showing in 10.3在 ios 10.2.1 中拨打电话时未显示确认对话框,但在 10.3 中显示
【发布时间】:2017-09-20 15:35:54
【问题描述】:

我正在使用此代码拨打电话。但是确认警报没有显示在 iOS version 10.2.1 的设备中,但在 iOS 10.3 中显示。

if let url = URL(string: "tel://\(selectedNumber)"){
    if #available(iOS 10.0, *) {
        UIApplication.shared.open(url, options: [:], completionHandler: nil)
    } else {
        UIApplication.shared.openURL(url)                
    }
}
}

但我想在所有 iOS 版本中显示确认警报。

【问题讨论】:

    标签: ios swift phone-call openurl


    【解决方案1】:

    如果我使用“telprompt://”,我已经找到了解决方案,它会在各种 ios 版本中显示确认对话框。但在 ios 10.3 中,确认对话框显示是否使用“tel://”或“telprompt://”。

    【讨论】:

      猜你喜欢
      • 2021-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-08
      • 2015-12-20
      • 2017-08-24
      • 1970-01-01
      相关资源
      最近更新 更多