我有一个 UIDatePicker。我选择凌晨 2:30,它通过我的日期时间为早上 6:30。我究竟做错了什么?谢谢
这是代码:
_datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, toolBar.frame.size.height, vcSize.width, 0)];
_datePicker.minimumDate = [NSDate date];
[_datePicker addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
_datePicker.minuteInterval = 15;
_datePicker.timeZone = [NSTimeZone localTimeZone];
_datePicker.calendar = [[NSLocale currentLocale] objectForKey:NSLocaleCalendar];