私はビューにUIActionSheet
を提示しており、アクションシートのボタンの1つが別のアクションシートを示しています。 iPadで2番目のアクションシートを提示すると、ログに次の警告メッセージが表示されます。UIPopoverBackgroundVisualEffectViewの警告を取得する
UIPopoverBackgroundVisualEffectViewは不透明度をアニメーション化するよう求められています。不透明度がに戻るまでこれが壊れて表示されるように効果が発生します。1.
これが私のコードです:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Option"] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Sort", nil];
actionSheet.tag = 1;
[actionSheet showInView:self.view];
とデリゲートに:
-(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:@"A-Z", @"Z-A", @"Newer to older", @"Older to newer", nil];
actionSheet.tag = 2;
[actionSheet showInView:self.view];
}
あなたが何を求めているかは非常に不明です。あなたの質問を編集してください。 –
警告メッセージとは何ですか?あなたのUIイメージとコードを追加してください。 –
デモを共有しますか?あなたが気にしないなら、私はそれをチェックし、解決策であなたに戻ってきます –