Disable time and AM/PM in UIdatepicker [closed]
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
开发者_运维技巧Closed 8 years ago.
Improve this questionhow to Disable time and AM/PM column in UIdatepicker...
[myUiDatePicker setDatePickerMode:UIDatePickerModeDate];
You may use "Countdown Timer" datePickerMode:
datePicker.datePickerMode = UIDatePickerModeCountDownTimer;
However note that it will also add "hours" and "minutes" after hours and minutes numbers respectively.
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"NL"];
[self.datePicker setLocale:locale];
精彩评论