ios - CLPlacemark 地址iOS 9 上的字典键

标签 ios core-location ios9 abperson clplacemark

Reading the documentation ,苹果指向ABPersonCLPlacemarkaddressDictionary 上使用的键。

但自 iOS 9 以来,ABPerson 已被弃用。

还有其他东西可以用来做 key 吗?

最佳答案

我能够找出其中的一些来解决我一直遇到的问题:

@"City" -> CLPlacemark.city
@"State" -> CLPlacemark.administrativeArea
@"Country" -> CLPlacemark.country

看我的问题here .

关于ios - CLPlacemark 地址iOS 9 上的字典键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32234719/

相关文章:

ios - 当应用程序在后台时获取用户位置。 IOS

avfoundation - 在 iOS9 中观察 AVPlayerItem 的值

swift - iOS 9 中的 segueForUnwindingToViewController

iOS 内容拦截器白名单网站

ios - 在动态框架中包含静态库的公共(public)头文件

ios - Swift 3 转换得到 'Int1' 不能转换为 'Bool'

ios - 将数据传递给 collectionView(numberOfItemsInSection) 函数 (Swift)

ios - EXC_BAD_INSTRUCTION 在 Swift 中对于 locationManager 崩溃(经理 : CLLocationManager, didUpdateLocations 位置:[CLLocation])

ios - 获取未应用 View alpha 的 View 快照

objective-c - 将值数组放入 CLLocationCoordinate2D 的优雅方式