iOS, Swift.
background, then: 12)viewWillDisappear is called 13)views are removed from the hierarchy of the screen and hiden Actually before the view controller is deiniated, all the views are still live in the memory but hiden and removed from the display view hierachy. 14)viewDidDisappear is called 15)deinit