【发布时间】:2012-09-25 07:02:08
【问题描述】:
我想测试一些功能。 如何设置硬编码我的 iPhone gps 的纬度、经度? 我知道如何获得它...
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
lat = newLocation.coordinate.latitude;
lon = newLocation.coordinate.longitude;
}
但没有找到设置方法
【问题讨论】:
-
如果您在模拟器中,请查看 Debug->Location 菜单。
标签: iphone objective-c gps