【发布时间】:2012-07-08 18:31:04
【问题描述】:
我在一个简单的 iPhone 应用程序中使用 MapView 和 CoreLocation...CoreLocation 正确显示了我的纬度和经度:
[Session started at 2012-07-08 20:11:35 +0200.]
2012-07-08 20:11:37.082 WhereAmI[5095:207] <+52.37609766, +4.92279518> +/- 70.00m (speed 0.00 mps / course -1.00) @ 7/8/12 8:11:33 PM Central European Summer Time
2012-07-08 20:11:38.605 WhereAmI[5095:207] <+52.37609766, +4.92279518> +/- 70.00m (speed 0.00 mps / course -1.00) @ 7/8/12 8:11:38 PM Central European Summer Time
但是当我跑步时:
[mapView setShowsUserLocation:YES];
突出显示的位置是加利福尼亚的 AppleHQ,而不是阿姆斯特丹 ?
从控制台日志中我确实发现了这个“用户位置视图不可见”错误:
2012-07-08 20:11:46.600 WhereAmI[5095:207] User location view is NOT visible but should be. Showing....
我确实对此进行了搜索,并被建议运行:
mapView.userLocationVisible;
这执行正常,但没有区别?
【问题讨论】:
标签: objective-c ios-simulator mkmapview core-location