We had previously discussed ViewController in the topic Introduction to the ViewControllers in iOS and in that topic we had given an overview of the ViewController LifeCycle.
Today we are going to discuss only the ViewController LifeCycle and How we should use each of the methods provided in the lifecycle event.
Today we are going to discuss only the ViewController LifeCycle and How we should use each of the methods provided in the lifecycle event.
What is LifeCycle?
A lifecycle is an event which has certain steps from the point of creation to deletion. So how do we know about the steps during this period? A Sequence of methods is called as they progress through the LifeCycle.
Now we may need to perform a different kind of actions at different steps of the life cycle and thus we commonly override these methods and perform these actions.