1. init(coder:)
It is the view controller to create an instance of the default initialization function from storyboard.
(It is the initializer for UIViewController instances created from a storyboard.)
It is called only once in the entire life cycle.
2. init(nibName:bundle:)
It is specified view controller initialization function.
(It is the designated initializer for UIViewController.)
When the instance is not to create a view controller through the storyboards, the method is called.
It is called only once in the entire life cycle.
3. loadView()
This method is used to override the program so as to create a view of a view controller.
4. viewDidLoad()
This method is used to override configured to interface file (XIB) file loadable view.
Reproduced in: https: //www.cnblogs.com/davidgu/p/5798310.html