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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:01:15+00:00 2026-06-01T05:01:15+00:00

I am new to iOS programming. I see that there are functions defined in

  • 0

I am new to iOS programming. I see that there are functions defined in my view controller such as

- (void) viewDidLoad

How is viewDidLoad an instance method as denoted by the hyphen? I don’t think I ever instantiate this class.

  • 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-01T05:01:16+00:00Added an answer on June 1, 2026 at 5:01 am

    When you create a *.xib file (the view) in Xcode and set its class (the controller) in the identity inspector, an instance of that class is instantiated when you load the *.xib file via

    [MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]
    

    And viewDidLoad is called automatically once the *.xib file has fully loaded.

    You can see this by simply creating a new Single View iOS project in Xcode. In AppDelegate.m you’ll see a line similar to the one above in the -(BOOL) application: didFinishLaunchingWithOptions: method. In the ViewController.xib file, if you click on “File’s Owner” and show the Identity Inspector, you’ll see that the class ViewController is the one “linked” with the *.xib.

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

Sidebar

Related Questions

I am new to iOS 5 programming so I'm sure that these are basic
I'm new to iOS programming and I am working on a easy project that
I'm new to iOS programming and is developing an app that requires the user's
all I'm new to ios programming. I want to set CST in the method
i'm just new to iOS Programming, so appreciate for any help. I'm trying to
I'm new to Xcode and programming for iOS, so I might not get what
I am new to iOS and Objective-C, I already know that in a class,
I am new to Objective C and IOS programming so please be patient with
I'm sure I'm dense from being new to iOS programming, but, I am having
I am fairly new to Objective-C and iOS programming, and I am having lots

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.