【发布时间】:2017-11-24 01:36:25
【问题描述】:
【问题讨论】:
-
这不是我想要的。我想要我添加的照片。
【问题讨论】:
像您在图像中添加的那样创建一个 ActionSheet。
对于列表中的所有应用程序,例如 GoogleMaps、Maps、Waze 点击后执行以下操作..
BOOL canHandle = [[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"comgooglemaps:"]];
if (canHandle) {
UIApplication.shared.openURL(URL(string:
"comgooglemaps://?center=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)&zoom=14&views=traffic&q=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)")!
} else {
//show alert to install googlemaps
}
【讨论】: