を却下する方法を、私は最初の岩下2番目のビューを提示したい、その後、最初のを却下:第二のViewControllerを提示&親のViewControllerに次のコードを使用して第1
// Animates the next questionViewController using the first questionViewController
[previousView presentViewController:nextQuestionViewController animated:YES completion:nil];
// Dismiss the first questionViewController
[previousView dismissViewControllerAnimated:NO completion:nil];
実行すると、第2のビューが提示されるが、第1のビューは却下されない。あなたが最初に "nextQuestionViewControllerを" 提示 "previousView" &を却下する必要があるだろう
[self.navigationController popViewControllerAnimated:YES];
previousViewで私の答えを見ることができるナビゲーションコントローラのスタック上のViewControllerであるか、それがモーダル表示されていましたか? –
はい、モーダルで表示されます。なぜそれが却下されないのか分かりません。 –
あなたのコードから、それはpresentViewController:animated、presentModalViewController:animatedではないと言います –