How to launch Google Maps on iPhone via web link?

前端 未结 4 771
攒了一身酷
攒了一身酷 2021-01-30 05:20

I am building a site that will have address links as well as image of a map - both of which have a link to Google Maps.

The problem is that when I click on these links u

4条回答
  •  北海茫月
    2021-01-30 06:10

    To open Google native app you need to write:

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

    Example :

    comgooglemaps://?q=Pizza¢er=37.759748,-122.427135

提交回复
热议问题