blank UIDatePicker on iPad in mode UIDatePickerModeDateAndTime
问题 I am struggling with the UIDatePicker on iPad. The setDate or .date assignment makes the DatePicker empty: UIDatePicker * dtVCpicker = [[UIDatePicker alloc] initWithFrame:CGRectZero]; dtVCpicker.datePickerMode = UIDatePickerModeDateAndTime; dtVCpicker.date = [NSDate date]; dtVCpicker.minimumDate = [NSDate date]; [self.view.window addSubview:dtVCpicker]; if I change the mode to UIDatePickerModeDate or UIDatePickerModeTime then it would look normal. Thanks a lot for your answers! 回答1: I