Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Designing Interviews:2D Artist2D Game Graphic Designer3-D Animation3D Artist3D Game Modeler3D Graphics3D Illustrator3D Interior Designer3D Maya3D ModelingAssistant Design EngineerAutomobile DesignerDesign EngineerFashion DesignerFreelance Textile DesignerItalian Kitchen DesignerLogo DesignerMobile Apps DesignerPhysical Product DesignerProduct DesignerTextile Dyeing SpecialistUX DesignerWeb Designing
Copyright © 2018. All Rights Reserved
UX Designer Interview Question:
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: MuhammadviewDidLoad 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
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.