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 6677255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:05:45+00:00 2026-05-26T04:05:45+00:00

The documentation says This method is called after the view controller has loaded its

  • 0

The documentation says “This method is called after the view controller has loaded its associated views into memory.” My questions are:

1) if I initialize a view controller is viewDidLoad called, or does the view actually have to be added as a superview of the current view for it to be called

2) If I add the view controllers view, and viewDidLoad is called, then I remove the view controllers view, then re-add it again later, will viewDidLoad be called again?

  • 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-05-26T04:05:45+00:00Added an answer on May 26, 2026 at 4:05 am

    viewDidLoad is called whenever the view is loaded. This happens when the vc.view property is accessed. It typically happens right before adding the view to a view hierarchy, but it can happen earlier if the property is accessed earlier.

    If you remove your view from a view hierarchy, and then a memory warning happens and viewDidUnload is called, then viewDidLoad will be called again if the view property is accessed again. But this is the only way for it to be called a second time; if your view never unloads, then viewDidLoad will never be repeated.

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

Sidebar

Related Questions

I see the documentation says this method returns the position of the given item,
The MSDN documentation says that public class SomeObject { public void SomeOperation() { lock(this)
The MySQL 5.4 documentation, on Optimizing Queries with EXPLAIN , says this about these
So in my documentation it says: public event TreeViewPlusNodeCheckedEventHandler NodeChecked() You can use this
The PHP documentation says the following about the __call() magic method: __call() is triggered
What method should be called to deactivate an app right after it's launch in
Heap Pollution documentation says in the last paragraph of this section that The static
The documentation says you can use $.noConflict() like this: jQuery.noConflict(); (function($) { $(function() {
The documentation says: show This event is emitted when the panel is shown. So
The jQuery .data() documentation says the following: The .data() method allows us to attach

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.