【问题标题】:iPhone: Get countryCode from location manager or map kitiPhone:从位置管理器或 mapkit 获取国家代码 【发布时间】:2010-11-09 06:34:52 【问题描述】: 我想知道当前位置的国家代码。是否可以使用 iPhone SDK? 【问题讨论】: 标签: ios iphone location mapkit 【解决方案1】: 使用 MKPlacemark。 http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKPlacemark_Class/Reference/Reference.html 【讨论】: countrycode 是 nsstring 类型,我想输入国家代码的数值 那是什么标准?我不知道任何基于国家代码数值的标准。 你得到的是这样的:en.wikipedia.org/wiki/ISO_3166-1_alpha-2 国家不多,你可能想自己做转换。