adspace


Explain about Viewcontroller lifecycle.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do all model object attributes get marked with @dynamic and not synthesised?

976


What's the latest version of ios?

977


What is latest ios version?

1003


In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?

991


How to handle concurrency problems in core data?

1017


What are the different store migration options? How do they work?

879


Explain parent-child context setup. How does it work? What are the advantages?

875


What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.

832


What is latest xcode version?

920


What is dependency management tools?

877


What is latest version of ios?

867


What is the purpose of reuseidentifier?

920


What are transient properties?

925


Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?

850