Quote:
Originally Posted by iOS.Lover
Hi , I need to set my UIDatePicker to a specific locale area , but in iOS it seems deprecated ! Is there any new way to change UIDatePicker locale by code ? ? and when I set specific calendar for example PersianCalndar to the picker , does not change anything !!!
Code:
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSPersianCalendar];
datePicker.calendar = calendar;
Thank you ..
|
That's weird that the locale property was deprecated.
I would suggest filing a radar bug on the documentation. The docs should tell us what the alternative is. By filing a bug, you'll accomplish 2 things:
1. Bring the missing info to Apple's attention
2. Likely find out the answer to your question
In the meantime, I would use the deprecated property. Apple doesn't remove deprecated method/properties for at least 1 major release, and usually longer.