1

正常に動作し、モーダル ビューを表示する iOS アプリがあります。

モーダル ビューが読み込まれ、アクション シートまたはカスタム ポップアップを呼び出すと、アクション シートを 2 回閉じて開くとクラッシュします。

同じアクション シートを表示するか、ダイレクト ビュー コントローラーでポップアップすると、問題ないように見えますが、

だから私の質問は、モーダルビューの上にアクションシートを表示する方法ですが、元のView Controllerにロードされていますか?

UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:nil otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];

popupQuery.actionSheetStyle = UIActionSheetStyleBlackTranslucent;

[popupQuery showInView:self.view];

[popupQuery release];

アプリがクラッシュするため、self.viewではなく、メインの[親]ビューコントローラーにアクションシートを表示する方法

exc_bad_access

どうもありがとう!

4

0 に答える 0