i used this code to show uipicker in uiactionsheet but when i click close button i want to remove action sheet from view. so what should be the code for removing actionSheet
Adding this method worked for me:
-(void) dismissActionSheet:(id)sender {
UIActionSheet *actionSheet = (UIActionSheet *)[(UIView *)sender superview];
[actionSheet dismissWithClickedButtonIndex:0 animated:YES];
}
All you need to do is dismiss the ActionSheet, which you could do with dismissWithClickedButtonIndex:animated:
action sheet scope problem.
used [actionSheet dismissWithClickedButtonIndex:0 animated:YES];