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

  • Home
  • SEARCH
  • 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 549913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:14:01+00:00 2026-05-13T11:14:01+00:00

when i create a new view based application a few methods in the implementation

  • 0

when i create a new view based application a few methods in the implementation file (.h)
i do not understand their purpose and when i look into the developer center its kind of hard to understand because of how its explained.

what purpose do these methods have and what are they used for in plain english.

- (void)loadView
- (void)viewDidLoad
- (void)viewDidUnload

what im guessing the viewdidload is , is that when the view is loaded and anything between the braskets are executed first, but when there are other custom methods created (if that is the purpose of viewdidload) how does it know which method to execute? is the code executed from top to bottom? being that whatever method is listed first is executed?

also i have noticed the word super inside brackets along with other keywords. what is the purpose of super?

thank you!

  • 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-13T11:14:01+00:00Added an answer on May 13, 2026 at 11:14 am

    Well, “super” means Super Class, or the parent class that your current class extends.

    @interface MyViewController : UIViewController{}

    In the code above, that you can find in some .h files, MyViewController extends UIViewController. So, all the time that you call “super” inside MyViewController, you are calling the UIViewController.

    So, when you see the following structure, inside MyViewController…

    - (void)viewDidLoad {
        [super viewDidLoad];
        .
        .
        .
        .
        .
    }

    … it means that when the method “viewDidLoad” is called, it will first call the method from it’s super class, to after run it’s own code.

    if you let the whole viewDidLoad method commented, it means that the parent method will be called automatically, because you are not overwriting it like on the previous example.

    To understand what all the methods (loadView, viewDidLoad, viewDidUnload), take a look at the UIViewController Class reference on Apple Developer Connection.

    Cheers,
    VFN

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

Sidebar

Ask A Question

Stats

  • Questions 286k
  • Answers 286k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try to play with attachment property while publishing your stream… May 13, 2026 at 4:58 pm
  • Editorial Team
    Editorial Team added an answer http://www.codespaces.com/ has some execelent project management, taks scheduling, bug tracking… May 13, 2026 at 4:58 pm
  • Editorial Team
    Editorial Team added an answer The reason why this doesn't exist in Intellisense is that… May 13, 2026 at 4:58 pm

Related Questions

I am having an issue that I can't seem to figure out. Hopefully somebody
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
I'm just starting iPhone development (coming fron a .Net world) and have been going
As well as my question Removing MKMapView Annotations causes leaks. I have discovered that
I'm following a tutorial on how to use Interface Builder from Chapter 2 of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.