I have a method called -showMoreTools: which is:
- (IBAction) showMoreTools:(id)sender {
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:@"Close" otherButtonTitles:@"Add Bookmark", @"Add to Home Screen", @"Print", @"Share", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleDefault;
popupQuery.dismiss
[popupQuery showFromBarButtonItem:moreTools animated:YES];
[popupQuery release];
}
When an user taps a UIBarButtonItem
it displays that UIActionSheet
, but then, if the user wants to close the UIActionSheet
without taping the Close button, (taping the UIBarButtonItem
, then it displays the UIActionSheet
over the first UIActionSheet
.
It's possible to implement somehow taping another time the UIBarButtonItem
to close the UIActionSheet
?
Thank you so much – I'm a newbie in iOS Programming!