[Solved] Difference in writing a code [closed]


I also really don’t get your intention. However, viewDidLoad is called exactly once, when the controller is first loaded into memory. That’s the point where you usually want to instantiate any instance variables and build any views that live for the entire lifecycle of this view controller. Nevertheless, usually the view isn’t visible at this point.

Then you have also other functions such as viewDidAppear, which is called when the view is actually visible. This method could be called a couple of time during the lifecycle.

But you can also read through the apple docs, which are very useful sometimes.

3

solved Difference in writing a code [closed]