-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
not working on ios8 iphone 6 #63
Comments
@masterjox I got a message "This video is private." by your links. |
sorry. |
@masterjox I don't see any ActionSheetStringPicker's problems here. Can you clarify, what the expected result and what the actual result? Only difference that I see in these 2 video - is in the first one it performs next picker after first is is done. |
The expect result is when you open the first actionsheet and select one, get new data and show other action sheet with dates in iphone 6 ios 8 the action sheet begin to show but automatically dismiss ( if you pause the video, in second 3, you can see the action sheet above the screen. |
Ok. I get it. |
in the code of github on class: ActionSheetPickerViewController.m y put this code: - (IBAction)selectABlock:(UIControl *)sender {
ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {
if ([sender respondsToSelector:@selector(setText:)]) {
[sender performSelector:@selector(setText:) withObject:selectedValue];
}
[self second:sender];
};
ActionStringCancelBlock cancel = ^(ActionSheetStringPicker *picker) {
NSLog(@"Block Picker Canceled");
};
NSArray *colors = @[@"Red", @"Green", @"Blue", @"Orange"];
[ActionSheetStringPicker showPickerWithTitle:@"Select a Block" rows:colors initialSelection:0 doneBlock:done cancelBlock:cancel origin:sender];
}
- (void)second:(id)sender{
ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {
NSLog(@"a vers si sale");
};
ActionStringCancelBlock cancel = ^(ActionSheetStringPicker *picker) {
NSLog(@"Block Picker Canceled");
};
NSArray *colors = @[@"Red", @"Green", @"Blue", @"Orange"];
[ActionSheetStringPicker showPickerWithTitle:@"Select a Block" rows:colors initialSelection:0 doneBlock:done cancelBlock:cancel origin:sender];
} instead of: - (IBAction)selectABlock:(UIControl *)sender {
ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {
if ([sender respondsToSelector:@selector(setText:)]) {
[sender performSelector:@selector(setText:) withObject:selectedValue];
}
};
ActionStringCancelBlock cancel = ^(ActionSheetStringPicker *picker) {
NSLog(@"Block Picker Canceled");
};
NSArray *colors = @[@"Red", @"Green", @"Blue", @"Orange"];
[ActionSheetStringPicker showPickerWithTitle:@"Select a Block" rows:colors initialSelection:0 doneBlock:done cancelBlock:cancel origin:sender];
} and you can see the error ( the second actionsheet not show) |
The problem that you try to show next picker before first is completely dismissed. And it cancelling presenting one more picker. |
I encounter the same problem. |
@lat233 in my case it reproduced on iphone 5,6 and iOS 7 and 8. |
I don't see the easy way to resolve this case. You can look at the example for this workaround in branch of this project |
Superb! It works like a charm after putting a delay of 0.4. You saved my life. |
@masterjox @lat233 Good news everyone! Since version |
The same code works on ios8 iphone 5 but doesn`t work on iphone 6 ( begins but it hides automatically).
iphone 5:http://youtu.be/DEKviPhG-Ds
iphone 6: http://youtu.be/tTsTJuUW7lY
the code is:
ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {
The text was updated successfully, but these errors were encountered: