Can I localize a UIDatePicker?

spoonforknife picture spoonforknife · Jul 20, 2009 · Viewed 13.5k times · Source

I'm trying to localize a UIDatePicker. Apple's docs say that it should autodetect the current locale, yet the language stays the same, no matter what language I select. What do I have to do?

Answer

koffeinfrei picture koffeinfrei · Feb 15, 2010

The locale property (and all other country specific format properties for that matter) defaults to the value returned by currentLocale, which in turns depends on the iphone's country settings, not the language settings. You need to set the appropriate country in the iphone general settings.