Min/max date/time for IASKDatePicker
tipa opened this issue · 1 comments
tipa commented
In my app the user can set a timespan in the app settings, which requires two time picker, one for the start and one for the end of the time span. In order to make sure the start time isn't set to a time later than the end time, I currently need to manually check and adjust the times after the user selected a value. However I would prefer to set a limit on the date/time picker itself.
futuretap commented
I recommend overriding tableView:willSelectRowAtIndexPath:
. Using [self.settingsReader specifierForIndexPath:indexPath]
you can fetch the specifier and check if you're dealing with the one you're interested in.
Then grab the cell and customize the datePicker
in the IASKDatePickerViewCell
.