Explain the difference between viewdidload and viewdidappear?



Explain the difference between viewdidload and viewdidappear?..

Answer / Abhishek Rajput

viewDidLoad is a method that gets called when a view controller's view is loaded into memory for the first time. It's used to perform one-time setup tasks, like setting up initial UI elements. viewDidAppear is called every time the view controller becomes visible on the screen after being hidden (e.g., by switching between view controllers or rotating the device). It's useful for updating UI elements that may have been affected by changes in other view controllers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain me app bundle?

1 Answers  


Which compiler is used by ios? : IOS Architect

1 Answers  


What are various singleton instances provided by frameworks?

1 Answers  


Explain me how to parse xml?

1 Answers  


Is ios 9 still supported by apple?

1 Answers  


Explain app bundle?

1 Answers  


What are extra features added in ios 9?

1 Answers  


Explain what is iphone architecture?

1 Answers  


What is sandbox in iOS operating system?

1 Answers   Winsol Solutions,


Does ios supports multi-tasking functionality?

1 Answers  


What is race condition in ios?

1 Answers  


What is a struct in iOS operating system?

1 Answers   B-Ways TecnoSoft,


Categories