最初のView Controllerとして4 がViewControllers
あります。startViewController
これには私のイントロが含まれています。その終了後、それは[self presentViewController:vc animated:YES completion:NULL];
私のmenuViewController
.
startViewController ------> menuViewController ------> C1ViewController
\
\ ------> ImportantViewController
私の中には上のイラストのようなmenuViewController
2つのボタンがあります。ViewController
また、私はこれでビューにそれらを提示しました:[self presentViewController:vc animated:YES completion:NULL];
私はこれで戻りmenuViewController
ます[self dismissModalViewControllerAnimated:YES];
私が欲しかったのは、ImportantViewController
他のビューに行っても、親ビューまたはメインビューのようにすることです。私が必要とするImportantViewController
のは、私が行くときに がいつ提示されるかC1ViewController
、menuViewController
割り当てが解除されないか、そこにあるコンテンツが保持されるかです。
出来ますか?そしてどうやって?
親と子のView Controllerの目的についてあまり知らないので、問題に何を実装すればよいかわかりません。ありがとうございました。
ところで、ストーリーボードを使用しています。