0

我想测试一些功能。如何设置硬编码我的 iPhone gps 的纬度、经度?我知道如何获得它...

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
 {
 lat =  newLocation.coordinate.latitude;
 lon = newLocation.coordinate.longitude;


 }

但没有找到设置它的方法

4

1 回答 1

3

打开您的模拟器,在顶部栏中转到Debug=>Location=>Custom Location输入您的自定义纬度和经度坐标。

于 2012-09-25T07:04:36.243 回答