摘要:
通过CLLocationManager类可以获取到当前位置的经纬度:1.要包含头文件2.添加CLLocationManagerDelegate协议3.在下面这个函数中:- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocationnewLocation.coordinate.latitude 当前位置的经度newLocation.coordinate.longitude 当前位置... 阅读全文
posted @ 2013-12-12 19:27
mr.programmer
阅读(244)
评论(0)
推荐(0)
浙公网安备 33010602011771号