Skip to content

Commit

Permalink
Merge pull request #9 from sutra/master
Browse files Browse the repository at this point in the history
Fix problem: when changing the date, it scrolls back to 'Today' automatically
  • Loading branch information
wannabegeek committed Oct 5, 2012
2 parents 96bba0e + 64ff544 commit 6724047
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PickerCellDemo/DateInputTableViewCell.m
Expand Up @@ -217,9 +217,10 @@ - (NSTimeInterval)timerValue {
}

- (void)setTimerValue:(NSTimeInterval)timerValue {
datePicker.countDownDuration = timerValue;
_timerValue = timerValue;
if (self.datePicker.datePickerMode == UIDatePickerModeCountDownTimer) {
datePicker.countDownDuration = timerValue;
_timerValue = timerValue;

self.detailTextLabel.text = [self timerStringValue];
} else {
// self.detailTextLabel.text = [self.dateFormatter stringFromDate:self.dateValue];
Expand Down

0 comments on commit 6724047

Please sign in to comment.