Skip to content

Commit

Permalink
Fixed an issue with hiding the action sheet in 4.1 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
eloe committed Feb 2, 2012
1 parent b490c20 commit 0f96f8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Pickers/AbstractActionSheetPicker.m
Expand Up @@ -153,7 +153,11 @@ - (IBAction)actionPickerCancel:(id)sender {
}

- (void)dismissPicker {
if (self.actionSheet && self.actionSheet.visible)
#if __IPHONE_4_1 <= __IPHONE_OS_VERSION_MAX_ALLOWED
if (self.actionSheet)
#else
if (self.actionSheet && [self.actionSheet isVisible])
#endif
[_actionSheet dismissWithClickedButtonIndex:0 animated:YES];
else if (self.popOverController && self.popOverController.popoverVisible)
[_popOverController dismissPopoverAnimated:YES];
Expand Down

0 comments on commit 0f96f8a

Please sign in to comment.