I present the UIActionSheet in my view, and one of the action bar buttons is another action sheet. When I present the second plan of action on the iPad, I get this warning in the logs:
UIPopoverBackgroundVisualEffectView is asked to animate its opacity. This will cause an effect until the opacity returns to 1.
This is my code:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Option"] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Sort", nil]; actionSheet.tag = 1; [actionSheet showInView:self.view];
And in the delegate:
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { [self showSortAction]; } -(void)showSortAction { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Sort By" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"AZ", @"ZA", @"Newer to older", @"Older to newer", nil]; actionSheet.tag = 2; [actionSheet showInView:self.view]; }
source share