本文介绍了带有xcode 4的iPhone模拟器4.3未显示当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有xcode 4和iphone模拟器4.3.我已经从Apple开发人员网站下载了显示当前位置的示例项目.所以代码绝对可以.我在Mac mini上打开了wifi.我已经对该项目进行了测试,并且一旦运行.但是之后,尽管进行了多次尝试,它仍未显示位置并给出了错误查找位置.

I have xcode 4 and iphone simulator 4.3. i have downloaded sample project from apple developer website which shows current location. So code is absolutely OK.I have mac mini with wifi on. I have tested that project and once it run. but after that despite of many attempts it does not show location and gives error finding location.

会是什么原因.

推荐答案

您无法在模拟器上找到位置.因此,请尝试在设备上. CLLocation类是特定于硬件的.

You can't get location on simulator. So try on a device. CLLocation class is hardware specific.

这篇关于带有xcode 4的iPhone模拟器4.3未显示当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 15:29