我正在iPad上的UIDatePicker掙扎。該的setDate或.date分配使得DatePicker的空:UIDatePickerModeDateAndTime在iPad上的空白UIDatePicker
UIDatePicker * dtVCpicker = [[UIDatePicker alloc] initWithFrame:CGRectZero];
dtVCpicker.datePickerMode = UIDatePickerModeDateAndTime;
dtVCpicker.date = [NSDate date];
dtVCpicker.minimumDate = [NSDate date];
[self.view.window addSubview:dtVCpicker];
如果我改變模式UIDatePickerModeDate或UIDatePickerModeTime那麼它看起來正常。
非常感謝您的回答!