title: iOS ViewController Life Cycle Best Practices
body: <p>Does anyone know of a good tutorial that explains in depth the view controller life cycle. I have read the docs so please do not link me to them. I am just looking for a practical explanation of each function such as viewDidLoad and viewWillAppear, viewWillLayoutSubviews, etc, and when best to use them with examples in Swift. If there are no tutorials would anyone be willing to explain them here in their answer. </p>