利用给的API进行使用google地图,主要方式有2种方式:
1,应用URL Scheme,调用google map APP,apps间的传值-->code:
if([[UIApplication sharedApplication] canOpenURL:
[NSURL URLWithString:@"comgooglemaps://"]])
{
NSLog(@"can open");
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"comgooglemaps://?center=31.834,117.2634&q=31.834,117.2634&zoom=14&views=traffic"]];