【发布时间】:2021-04-18 06:31:53
【问题描述】:
我需要打开Neshan 应用程序(地图应用程序如Google-Map)。
这是我的代码:
if (UIApplication.sharedApplication().canOpenURL(NSURL(string:"comgooglemaps://")!)) {
UIApplication.sharedApplication().openURL(
NSURL(string:"comgooglemaps://?saddr=&daddr=\(place.latitude),\(place.longitude)&directionsmode=driving")!
)
} else {
NSLog("Can't use comgooglemaps://");
}
这不行!我该怎么办?
【问题讨论】:
标签: ios swift routes neshan neshan-map