If you use the code to invoke the action sheet as shown below
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"YOUR TITLE" delegate:self cancelButtonTitle:nil destructiveButtonTitle:@"YOUR MESSAGE" otherButtonTitles:@"Cancel", nil]; [actionSheet showInView:self.view]; [actionSheet release];
Then there will be no problem calling the delegate method,
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
Greetings
source share