简体   繁体   English

XCode IPhone Simulator升级后不显示用户位置

[英]XCode IPhone Simulator doesnt show user location after upgrade

I was working with XCode 4.3 and having a working code. 我正在使用XCode 4.3,并具有有效的代码。 But after upgrading to 4.4 i met with a problem. 但是升级到4.4后,我遇到了一个问题。 The problem is that current user location is not being showed on the iphone simulator. 问题在于,当前用户位置未在iphone模拟器上显示。 I mean the blue dot. 我的意思是蓝点。 And also my pins dissappeared and map is not focusing to the area i wanted. 而且我的图钉消失了,地图也没有聚焦到我想要的区域。 Do u have any idea about this problem? 您对这个问题有任何想法吗?

你尝试过这个吗

self.mapView.showsUserLocation=YES;

GPS services doesn't work well in simulator. GPS服务在模拟器中无法正常运行。 Apple has supported it in simulator 5 but not in the prior versions. Apple已在模拟器5中支持它,但在以前的版本中不支持。

Make sure you have the Edit Scheme... > Run > Options the 'Allow Location Simulation' checked. 确保已选中“编辑方案...”>“运行”>“允许位置模拟”选项。

I also had the issue at first. 一开始我也遇到了这个问题。 Pin was there but no map displayed, only a grid. 那里有Pin,但没有显示地图,只有一个网格。

I played with the map to move it around and it start working. 我玩过地图以使其移动并开始工作。

I have xcode 7.3.1 我有xcode 7.3.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM