Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8145073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:33:05+00:00 2026-06-06T13:33:05+00:00

What is the difference between viewDidLoad and viewDidAppear ? What kind of initialization or

  • 0

What is the difference between viewDidLoad and viewDidAppear? What kind of initialization or custom code goes into those functions?

e.g. presentModalViewController works only when present in viewDidAppear and not on viewDidLoad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:33:07+00:00Added an answer on June 6, 2026 at 1:33 pm

    viewDidLoad is called exactly once, when the view controller is first loaded into memory. This is where you want to instantiate any instance variables and build any views that live for the entire lifecycle of this view controller. However, the view is usually not yet visible at this point.

    viewDidAppear is called when the view is actually visible, and can be called multiple times during the lifecycle of a View Controller (for instance, when a Modal View Controller is dismissed and the view becomes visible again). This is where you want to perform any layout actions or do any drawing in the UI – for example, presenting a modal view controller. However, anything you do here should be repeatable. It’s best not to retain things here, or else you’ll get memory leaks if you don’t release them when the view disappears.

    See: https://developer.apple.com/documentation/uikit/uiviewcontroller

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is main difference between INSERT INTO table VALUES .. and INSERT INTO table
What the difference between jQuery's functions val() and text() ? Where would you use
What is the difference between the JavaScript functions decodeURIComponent and decodeURI ?
A difference between a destructor (of course also the constructor) and other member functions
whats os the difference between initWithNibName and ViewDidLoad methods ? can i use them
Difference between the two functions: (function($){ console.log($); }(test)); (function($){ console.log($); })(test); I've tried it
What´s difference between those two directories on Cakephp2?
//Difference between 2 dates This function works well but display wrong time format. Pls
Difference between Custom Tag and Java Bean?
What's the real difference between those two? I mean real, essential difference. What's the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.