ビューコントローラにて画面表示時に呼び出されるメソッドのライフサイクルになります。 下記の順番にて呼び出されますので必要に応じてオーバーライドします。 // Life Cycle // UI 部品を View へセットする場合はこちらをオーバーライドします。 // ただし、UI 部品のセットはこのメソッドでなくても問題ありません。 override func loadView() { super.loadView() print("loadView") } // 初期表示時に必要な処理を設定します。 override func viewDidLoad() { super.viewDidLoad() print("viewDidLoad") } // 画面に表示される直前に呼ばれます。 override func viewWillAppear(animated: Bool) { super.