读书人

iphone map定位

发布时间: 2012-09-24 13:49:41 作者: rapoo

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,@"中国,湖南,长沙,具体地名"]]];

读书人网 >Iphone

热点推荐