开发者

Disable time and AM/PM in UIdatepicker [closed]

Closed. This question needs debugging details. It is not currently accepting answers.

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 question

how 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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜