UIDatePicker locale does nothing?

Posted by morticae on Stack Overflow See other posts from Stack Overflow or by morticae
Published on 2010-04-15T20:23:27Z Indexed on 2010/04/15 20:43 UTC
Read the original article Hit count: 685

Filed under:
|
|
|
|

I'm creating a UIDatePicker programmatically, and setting its locale with the following code:

datePicker.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"es_ES"] autorelease];

The datepicker still appears in English (or whatever language I've set the phone to). Anyone have any idea why this does nothing, or how to fix it?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c