Tell me what is the difference between viewDidLoad and viewDidAppear?
Which should you use to load data from a remote server to display in the view?
Submitted by: Muhammad
viewDidLoad is called when the view is loaded, whether from a Xib file, storyboard or programmatically created in loadView. viewDidAppear is called every time the view is presented on the device. Which to use depends on the use case for your data. If the data is fairly static and not likely to change then it can be loaded in viewDidLoad and cached. However if the data changes regularly then using viewDidAppear to load it is better. In both situations, the data should be loaded asynchronously on a background thread to avoid blocking the UI.
Submitted by: Muhammad
Read Online UX Designer Job Interview Questions And Answers