ActionSheetPicker-3.0: ActionSheetStringPicker not working on iPad (only iPhone)
When I call ActionSheetStringPicker on the iPad the screen fades, but the selection won’t show up. It just works on my iPhone.
Here follows the code:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
if(textField.tag == 200){
NSMutableArray *groups = [[NSMutableArray alloc] init];
for (Group *group in [Group sharedUserGroups]) {
[groups addObject:group.name];
}
[ActionSheetStringPicker showPickerWithTitle:@"Select a Group"
rows:groups
initialSelection:0
doneBlock:^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {
textField.text = selectedValue;
}
cancelBlock:^(ActionSheetStringPicker *picker) {
NSLog(@"Block Picker Canceled");
}
origin:self.view];

About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 41 (14 by maintainers)
Commits related to this issue
- Fix #187 Fix #131 Fix #156 — committed to skywinder/ActionSheetPicker-3.0 by skywinder 9 years ago
- Update podspec to version 2.0.3 A UIView contain no text rather than nil should be returned when object in data is not NSString and do not respond to decription message. Update changelog for version... — committed to skywinder/ActionSheetPicker-3.0 by skywinder 9 years ago
Ran into the same issue. The #187 fix did not work. Complete fix for me. (same position as the #187 fix)
Yes, I replaced the mentioned code part. I’m sorry, I tested both versions right now, but in this case it didn’t really change the outcome. I assume my Problem was definitely just the wrong
origin.