开发者

Disable time and AM/PM in UIdatepicker [closed]

开发者 https://www.devze.com 2023-01-17 13:53 出处:网络
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 nece
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

精彩评论

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