UX Designer Question:
Download Questions PDF

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?

UX Designer Interview Question
UX Designer Interview Question

Answer:

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.

Download UX Designer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me are tabs as a pattern good for mobile design? How do they affect an app’s usability?Please explain about an assignment that was too difficult. How did you handle the situation?