I have already asked a similar question, but I am going to focus more on what I do not understand. The doubt comes from the storyboard and / or the .xib files linked to their respective classes.
When you create a controller in the storyboard, you have to link it with your class (which, from what I understand, would be your File's Owner), so you can also create your outlets and actions. Now what gives me doubt, why do I have to link the .xib file (or the storyboard viewController) with the class and it's not the other way around?
That is, if the object that is instantiated is the .swift (which contains the subclass of the UIViewController
), because the xib file is linked to the class and not in the opposite way? It is more logical to create the controller object, and at the same time, link it with the .xib file