core-location - iOS 6 和定位服务不工作

标签 core-location cllocationmanager ios6

我更新了我的 iOS SDK到版本 6。之后我编译了我的应用程序(在 iOS 4 & iOS 5 中工作正常)但现在位置服务不起作用。我的 delegate没有收到任何更新,上方的位置箭头也没有出现......我像往常一样启动服务:

[locationManager startUpdatingLocation];

我的项目不是 ARC。

怎么了?这真让我抓狂...

提前致谢。

最佳答案

确保项目的 .plist 文件中有 CFBundleDisplayName。添加该键为我修复了它。

关于core-location - iOS 6 和定位服务不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12522004/

相关文章:

ios - 使用给定的坐标和以米为单位的距离计算新坐标

ios - 位置管理器 :didEnterRegion and didExitRegion are never getting called :iBeacon

ios - 在屏幕打开之前,重要的位置更改将不起作用

iOS Scatter核心图,如何用一条线连接两个点?

ios - iOS6 中的任何 api 获取 gps 位置的静态 map 图像

objective-c - CLLocationManager 航向更新的平滑显示

iphone - 为什么要在 init 方法中调用 autorelease 来定义 iVar?

iOS 8 和 iBeacon - kCLErrorRegionMonitoringDenied

swift - 在 Testflight beta 测试中进行测试时应用程序崩溃了

ios - 如何从 UITextField 获取 UITableViewCell 的索引?