【发布时间】:2018-01-15 08:01:16
【问题描述】:
我使用以下 swift 代码,但它每次都打印“无法使用 comgooglemaps://”。我在真正的 iphone7 中测试它并安装了谷歌地图应用程序。 请帮忙。
if UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!) {
UIApplication.shared.open(URL(string:"comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic")!)
} else {
print("Can't use comgooglemaps://")
}
【问题讨论】:
-
@AndreaMugnaini 是的
标签: ios swift google-maps deep-linking applinks