Hi guys,
Hope every body is doing great.
I just came across a stragne issue, changing manually NSLocale of UIDatepicker is not working but in only specific mode
datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(10, 130, [UIScreen mainScreen].bounds.size.width-20, 120)];
NSLocale* locale = [NSLocale localeWithLocaleIdentifier:[AppDelegate getLocale]];
[datePicker setLocale:locale];
datePicker.datePickerMode = UIDatePickerModeCountDownTimer;
Now here it only returns hours and Minutes in English irrespective of Locale value, While if you set
datePicker.datePickerMode = UIDatePickerModeDate;
Or even this
datePicker.datePickerMode = UIDatePickerModeTime;
Is working fine
Only when you use datePicker.datePickerMode = UIDatePickerModeCountDownTimer; locale is not working in that case,
Is it a bug in UIDatepicker that needs to be fixed, or what is work around?
Thanks