可能重複:
Finding the distance, currency, temperature units etc. for a country (iPhone)IOS - 確定系統的距離單位
我一直沒能找到一個回答這個問題。
我使用CLLocation
方法distanceFromLocation
來獲得兩個座標之間的距離,但該方法返回以米爲單位的距離。
根據設備的區域設置,我希望能夠動態地確定我是否應該將它轉換爲英里(例如,如果用戶是美國)
所以這不是一個如何轉換,但是當一個問題轉換
任何想法?
轉換爲測量系統[在NSLocale中指定](http://stackoverflow.com/questions/2153302/finding-the-distance-currency-temperature-units-etc-for-a-country-iphone/2153385 #2153385) – progrmr