为什么我的locationManager为纬度和经度返回零?

时间:2015-03-22 15:35:40

标签: ios objective-c gps core-location

我正在尝试获取GPS位置。我正在运行iOS模拟器并设置自定义位置

enter image description here

我的头文件我定义了locationManager。

enter image description here

在我的ViewController类中,我合成了locationManager。

enter image description here

在我的viewDidLoad中,我实现了locationManager

enter image description here

在我的触发器方法中,我尝试注销位置数据。我得到了0.

enter image description here

2015-03-22 11:21:24.539 APP_NAME[50197:558692] Lat: 0
2015-03-22 11:21:24.540 APP_NAME[50197:558692] Long: 0

更新 我刚刚在iPod touch上测试并遇到了同样的问题。

0 个答案:

没有答案