Explain about Viewcontroller lifecycle.



Explain about Viewcontroller lifecycle...

Answer / Nirbhay Narayan Pandey

"The view controller lifecycle in iOS consists of several stages:
1. Loading View - The view controller is loaded into memory but not yet displayed on the screen.
2. ViewDidLoad - This method gets called after the view controller's view has been added to a window and its auto layout constraints have been activated. You can initialize properties here.
3. View Will Appear - The view controller's view is about to be displayed on the screen, but it's not necessarily visible yet.
4. View Did Appear - The view controller's view has become visible on the screen.
5. Prepare For Segue - This method gets called when a segue (transition between screens) is triggered.
6. View Will Disappear - The view controller's view is about to disappear from the screen.
7. View Did Disappear - The view controller's view has disappeared from the screen.""

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain app bundle?

1 Answers  


What is the protocol in ios?

1 Answers  


What is mvc? Mvc architecture of iphone app.

1 Answers  


What is iphone architecture?

1 Answers  


How to add an iphone os user to your team as a tester?

1 Answers  


List the devices compatible with ios 11? : IOS Architect

1 Answers  


What is meaning of 'readonly' keyword?

1 Answers  


What is ios design?

1 Answers  


What are ios protocols?

1 Answers  


What are transient properties?

0 Answers  


What is App Bundle in iOS operating system?

1 Answers   TryTechnicals Pvt Ltd,


What devices will support ios 7?

1 Answers  


Categories