So, for example, let's say I have a regular subclass of UIViewController, and I connected the control object contained in this view of the controller to the segue action, which allows me to see the look of another controller of the controller ...
Simple enough.
When I call a method called prepare (for: sender :) on a regular subclass of UIViewController, at the moment I'm connected to a new one that will be used by the view controller, whose view will appear on the screen. Is this a new controller instance not yet created?
I believe the answer is yes, because inside the preparation function (for: sender :) I set the link for segue.destination (which is the destination view controller), and when I print this link, it seems like a place in which it is already said that the new The view controller has already been created.
Can someone confirm / deny that this new view controller (created from the storyboard) has already been created, or more simply?
thank
source
share