我需要UIDatePicker
在UIDatePickerModeTime
.
TimePicker= [[UIDatePicker alloc] init];
[TimePicker addTarget:self action:@selector(TimeChanged:) forControlEvents:UIControlEventValueChanged];
TimePicker.datePickerMode = UIDatePickerModeTime;
TimePicker.timeZone = [NSTimeZone systemTimeZone];
[self.view addSubview:imePicker];
AM/PM
它可以工作,但它显示带有选项的 DatePicker 。我们可以将 更改AM/PM
为小写(即am/pm
)吗?