-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Run picker within done block of another #84
Comments
Hi! It's the same problem that described here: #63 Now, as workaround - you can wait for 0.3 seconds before rise up new picker. (as I described in #63) |
Thanks a lot. That helped me a lot! |
Good news everyone! Since version |
I met a problem when I want to nest multiple pickers. What I want to do is showing three action sheet pickers one by one (after user tapped done button, another should show). The first picker will be shown without problems, but the second one will appear and immediately disappear. Here is my code:
[ActionSheetDatePicker showPickerWithTitle:@"Choose Date" datePickerMode:UIDatePickerModeDate selectedDate:[NSDate date] doneBlock:^(ActionSheetDatePicker *picker, NSDate *selectedDate, id origin) {
// update choosed date
[self updateInspectionDate:selectedDate atIndexPath:indexPath];
[self.tableView reloadData];
// start another action sheet for start time
[ActionSheetDatePicker showPickerWithTitle:@"Start Time" datePickerMode:UIDatePickerModeTime selectedDate:[NSDate date] doneBlock:^(ActionSheetDatePicker *picker, NSDate *selectedDate, id origin) {
// update start time
[self updateInspectionStartTime:selectedDate atIndexPath:indexPath];
[self.tableView reloadData];
// start another action sheet for end time
[ActionSheetDatePicker showPickerWithTitle:@"End Time" datePickerMode:UIDatePickerModeTime selectedDate:[NSDate date] doneBlock:^(ActionSheetDatePicker *picker, NSDate *selectedDate, id origin) {
// update choosed time
[self updateInspectionEndTime:selectedDate atIndexPath:indexPath];
[self.tableView reloadData];
} cancelBlock:nil origin:[tableView cellForRowAtIndexPath:indexPath]];
} cancelBlock:nil origin:[tableView cellForRowAtIndexPath:indexPath]];
} cancelBlock:nil origin:[tableView cellForRowAtIndexPath:indexPath]];
If this is not possible, is there anyway to put 3 ActionSheetDatePickers within one action sheet view?
Any help will be appreciated, thanks a lot!
The text was updated successfully, but these errors were encountered: