Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Min/max date/time for IASKDatePicker #433

Open
tipa opened this issue Jun 1, 2020 · 1 comment
Open

Min/max date/time for IASKDatePicker #433

tipa opened this issue Jun 1, 2020 · 1 comment

Comments

@tipa
Copy link

tipa commented Jun 1, 2020

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants