今回は初心者の方向けにUIViewControllerの話とそのライフサイクルについて説明していきます。 さっそくですがUIViewControllerは大きく二つの役割に分けられます。 Content View Controller コンテンツを画面に表示するために使われるViewControllerです。 画面を作るための一般的な役割を担います。 Container View Controller こちらはコンテナとしての役割を担うViewControllerになります。 内包するViewControllerと親子関係を持ち、ほかのViewControllerとのやり取りを調整する役割を持っています。 説明だけだと分かりにくいかもしれませんが、Container View Controllerの代表的な例としては下記のものがあります。 UINavigationController UI