Skip to content

Commit

Permalink
Add additional check for UIDatePickerModeCountDownTimer
Browse files Browse the repository at this point in the history
  • Loading branch information
skywinder committed Nov 11, 2014
1 parent 9368a59 commit 3c67191
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Pickers/ActionSheetDatePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ - (void)customButtonPressed:(id)sender {
NSAssert([self.pickerView respondsToSelector:@selector(setDate:animated:)], @"Bad pickerView for ActionSheetDatePicker, doesn't respond to setDate:animated:");
NSDate *itemValue = buttonDetails[kButtonValue];
UIDatePicker *picker = (UIDatePicker *)self.pickerView;
[picker setDate:itemValue animated:YES];
[self eventForDatePicker:picker];
if (self.datePickerMode !=  UIDatePickerModeCountDownTimer)
{
[picker setDate:itemValue animated:YES];
[self eventForDatePicker:picker];
}
break;
}

Expand Down

0 comments on commit 3c67191

Please sign in to comment.