I make search and up to now I see that UIDatePicker is working with localization of the device.
I have app which has internal lozalization. I need to change month's text dependantly of my internal localization. As I read it appears that this is not possible - I have to make my own custom picker.
Is there a way to achieve that without custom Dat picker?
A control for inputting date and time values.
Overview. Use a DatePicker when you want to provide a view that allows the user to select a calendar date, and optionally a time. The view binds to a Date instance. The following example creates a basic DatePicker , which appears on iOS as text representing the date.
Use locale property of UIDatePicker. I can't see any signs that the property is deprecated.
This code will localize picker to Japanese.
[datePicker setLocale: [NSLocale localeWithLocaleIdentifier:@"ja"]];
Replace "ja" with any language code you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With