使用以下链接作为引用打开谷歌地图 iOS 应用程序 https://developers.google.com/maps/documentation/ios-sdk/urlscheme .
我需要检查并打开谷歌街景 iOS 应用程序。如果有人知道它的 url 方案以及如何在我的设备中检查谷歌地图并使用 URL 方案打开它,请帮助我。
最佳答案
更新的答案以反射(reflect)谷歌街景应用而不是谷歌地图街景选项
if ([[UIApplication sharedApplication] canOpenURL:
[NSURL URLWithString:@"streetview://"]]) {
NSLog(@"Google Street View is installed");
} else {
NSLog(@"Google Street View is not installed");
}
关于ios - 如何从另一个 iOS 应用程序打开谷歌街景应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34946911/