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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:22:28+00:00 2026-06-04T10:22:28+00:00

The methods applicationDidBecomeActive , loadView , and viewDidLoad will get called at appropriate times

  • 0

The methods applicationDidBecomeActive, loadView, and viewDidLoad will get called at appropriate times in an iOS app. For loadView and viewDidLoad, it looks like it is:

-(void) someMethod {

    //...

    [viewController loadView];
    [viewController viewDidLoad];

}

Is that how they get called and what is the class that call them? (Is there source code that can show the flow of the starting of an app? A lot of times, we can only see the header files but not the source code).

  • 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-04T10:22:30+00:00Added an answer on June 4, 2026 at 10:22 am

    If I understood well your question, you would like to know about the application lifecycle, is it true?

    Well, I guess there is no source code provided by apple that can display you how it looks like.

    If you want to know how happens when an application starts, I suggest to read about app-launch-sequence-ios-revisited by Oleb. It’s a very good post.

    About the methods you wrote, these methods shouldn’t not called manually. It’s the framework (through the iOS) that calls them for you.

    The methods loadView and viewDidLoad are methods that are called during the UIViewController lifecycle.

    You use (override) loadView when you cannot create a storyboard or a nib file. In this manner you can provide to your UIViewController a fresh view. From Apple doc:

    If you cannot define your views in a storyboard or a nib file,
    override the loadView method to manually instantiate a view hierarchy
    and assign it to the view property.

    In other words:

    - (void)loadView
    {  
       UIView* myCustomView = ... // create the view here
       self.view = myCustomView;
    }
    

    About the viewDidLoad method, this is called when a view has been set up in memory. Once done you are sure that outlets, for example, are set up and you can perform additional initializations.

    From Apple doc:

    This method is called after the view controller has loaded its view
    hierarchy into memory. This method is called regardless of whether the
    view hierarchy was loaded from a nib file or created programmatically
    in the loadView method. You usually override this method to perform
    additional initialization on views that were loaded from nib files.

    In other words:

    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        // additional initializations here
    }
    

    Finally, about applicationDidBecomeActive method (or delegate if you want), this is called to let your application know that it moved from the inactive to active state.

    I suggest you to read UIApplicationDelegate and UIViewController class references.

    If you want to simply verify the sequence call, override the methods and put a NSLog there.

    Hope it helps.

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

Sidebar

Related Questions

Certain methods in Java will block until they can do something, like ServerSocket.accept() and
I have this strange issue. The applicationDidBecomeActive method is called correctly in the iOS
My app delegate method applicationDidBecomeActive: is getting called twice for the first time launch
Both methods MyBehavior::CreateSerializer() are not called of some reason, but ReplaceBehavior() method is working.
Many methods like stop() , resume() , suspend() etc are deprecated. So is it
The applicationWillTerminate delegate method is not getting called in iOS 4.0 When I hit
Methods like aggregate on scala.collection.parallel.immutable.ParIterableLike process using Threads. Does that mean I shouldn't be
in my app in the appDelegate .m i have insert the reachability code like
My app has time-sensitive information in a view that will need to be updated,
I will like my application that always starts as the first time I open

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.