私は 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];