Finding the distance, currency, temperature units etc. for a country (iPhone)

前端 未结 5 845
灰色年华
灰色年华 2020-12-29 04:27

During the localization of my app I went through a lot of documentation, somewhere Im sure I read that there is a way to get a set of units that is linked with the locale.

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 04:59

    You can use NSLocale to check the currency unit, but for imperial vs. metric you need to make a list yourself.

    Oops. You can check for the imperial vs. metric. There is are NSLocaleMeasurementSystem and NSLocaleUsesMetricSystem keys.

提交回复
热议问题