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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:09:44+00:00 2026-05-26T15:09:44+00:00

I am having problem with ViewDidLoad Method.I have one .Xib File in my app

  • 0

I am having problem with ViewDidLoad Method.I have one .Xib File in my app and 5 viewControlelr.And Each View Controller Contains some initialization and method calls.

Problem is at the startup all the ViewDidLoad method runs.

Is there any way i can do this just when my ViewController will be called and the View is Loaded on the screen?

What is the proper way in this case?

I tried like this code :

  -(void)viewDidAppear
    {

    [ScoreWebView loadRequest:[NSURLRequest requestWithURL:[NSURL    URLWithString:@"http://smwebtech.com/Pandit/web_service/getScore.php?u=aa"]]];

     }

But my program is not reaching this method.Why?Am i missing something?Please take a look.

  • 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-26T15:09:44+00:00Added an answer on May 26, 2026 at 3:09 pm

    Use viewWillAppear method instead. It is only called when the view is going to appear on screen.

    Or viewDidAppear which is only called after the view appears on screen.

    EDIT:

    Both viewWillAppear and viewDidAppear take a BOOL argument each:

    - (void)viewWillAppear:(BOOL)animated {
    }
    
    - (void)viewDidAppear:(BOOL)animated {
    }
    

    EDIT2:

    These two delegate methods have their corresponding ‘opposite’ methods that you can override to release resources you allocate in the former methods:

    - (void)viewWillDisappear:(BOOL)animated {
        [resource release];
        [super viewWillDisappear:animated];
    }
    
    - (void)viewDidDisappear:(BOOL)animated {
        [resource release];
        [super viewDidDisappear:animated];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are having problem with the server migration. We have one application that are
I am having a problem placing a tool bar in the root view controller
I'm having problem when running my Windows Forms program. In the program, I have
i'm having problem to deal with charset in ruby on rails app, specificially in
I am having an iphone app with admob on two screens's viewdidLoad My code
I have been trying to fix this problem for hours. My app keeps crashing
I'm having a problem displaying an image in an image view, which is generated
I have an iPhone app that uses a UINavigationController, some table views, and iAd.
I am having problems sending along 2 NSString variables to a view controller right
I'm having problems making my app iPad compatible. I have an implementation of a

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.