1

Please help me. I have a bug in iOS5 thats set the locale into 12-hours mode in iOS6 is working fine.

this are my code.

NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"NL"];

[self.timePickerView setLocale:locale];
[self.timePickerView setTimeZone:[NSTimeZone defaultTimeZone]];
[self.timePickerView setDate:self.date animated:NO];

what is wrong with my code? I want to have a default 24hours on my UIDatePicker. please help me thanks!

4

0 に答える 0