我想以编程方式在iOS 6中打开Google 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
| 归档时间: |
|
| 查看次数: |
2769 次 |
| 最近记录: |