ViewControllers (ViewController A) の 1 つに、次のコードがあります。
AlertViewController *aViewController = [[AlertViewController alloc] initWithNibName:@"AlertViewController" bundle:nil];
[self.view addSubview:[aViewController view]];
[self.view bringSubviewToFront:[aViewController view]];
AlertViewController にはボタンがあり、ユーザーがそれをクリックすると、次のようになります。
[self.view removeFromSuperview];
ボタンをクリックするたびに、結果は EXC_BAD_ACCESS になります。私は問題を理解することができません。私のプロジェクトはARCを使用しており、その情報が役立つ場合、ViewController Aはナビゲーションコントローラースタックの一部です。