在iOS 6中打开Goog​​le Maps App

Zah*_*hur 5 iphone ios6-maps

我想以编程方式在iOS 6中打开Goog​​le Map App.我试图通过传递url - maps来打开地图.....但它仍然在Safari中打开

fre*_*ler 11

[[UIApplication sharedApplication] canOpenURL:
[NSURL URLWithString:@"comgooglemaps://"]];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:
@"comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic"]];
Run Code Online (Sandbox Code Playgroud)

参考:https: //developers.google.com/maps/documentation/ios/urlscheme