What is the difference between viewdidload and viewwillappear?



What is the difference between viewdidload and viewwillappear?..

Answer / Pramod Pratap Singh

ViewDidLoad is a method called by the system when an UIViewController's view is loaded from a nib file or when it is first loaded programmatically. It is only called once during the lifetime of a view controller. On the other hand, ViewWillAppear is called right before the view of the UIViewController appears on screen. Unlike viewDidLoad, this method will be called every time the view appears on screen, even if it's not reloaded.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is retain counts?

1 Answers  


What is the difference between let and var in swift?

1 Answers  


What manual memory management ? How it work?

1 Answers  


 Which app specific objects store the app's content?

1 Answers  


Where do you test the developed apps if you do not have the device?

1 Answers  


Explain how do I get a call when my ipad rings?

1 Answers  


. Name the app sate which it reaches briefly on its way to being suspended

1 Answers  


What is ios application?

1 Answers  


How to parse xml? Explain

1 Answers  


Does ios support multitasking?

1 Answers  


What is the maximum byte-size for a push notification to apple server?

1 Answers  


Enlist the latest ios development patform?

1 Answers  


Categories