破壊的なボタンなしでポップアップするアクション シートを作成しようとしています。以下のコードから破壊的なボタンを単純に削除しようとすると、エラーが発生します: UIActionSheet の可視インターフェイスがありません。なぜこれが起こっているのか誰にも分かりますか?赤い破壊ボタンを削除するにはどうすればよいですか? ありがとうございました!
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title"
delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive
Button" otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];