当前位置: 代码迷 >> Iphone >> iphone map定位
  详细解决方案

iphone map定位

热度:67   发布时间:2016-04-25 06:20:24.0
iphone 地图定位

CLLocationCoordinate2D loc = [newLocation coordinate];
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%@",loc.latitude,loc.longitude,@"中国,湖南,长沙,具体地名"]]];

  相关解决方案