What is and what is ViewDIdLoad for?
What is and what is ViewDIdLoad for?
This is a method of the UIViewController class that is called once the view hierarchy of the view controller is loaded, but is not yet visible on the screen.
This method is called once only during the view controller lifecycle. It is usually in it that the initialization of elements of the interface that were not done by nib / storyboard is done. That is, many times in the graphic editor we only define the basic structure of the interface, but the configuration of the elements (eg, color, font, text) is done by code in this method. We can also initialize other non-interface types.