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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:35:16+00:00 2026-05-17T20:35:16+00:00

I have an application where I was using buttons on a toolbar to call

  • 0

I have an application where I was using buttons on a toolbar to call up the views, but I am switching it over to using a tab bar.

When using the buttons I was using the following code in MainViewController.m to update the values on the page and it was working just fine:

-(IBAction) loadSummaryView:(id) sender {
 [self clearView];
 [self.view insertSubview:summaryViewController.view atIndex:0];
 //Update the values on the Summary view
[summaryViewController updateSummaryData];
[summaryViewController calculateData];
}

However, with the Tab Bar I can not figure out how to do this. I tried putting all of the necessary code in the Summary Views viewDidLoad and it loads the initial values, but it will not update the values when I change them in another view.

Any help is appreciated. I am a bit new at this, so please don’t be cryptic as I may not understand the response.

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-17T20:35:16+00:00Added an answer on May 17, 2026 at 8:35 pm

    By placing your code in viewDidLoad, it will only be called when the view is loaded from the nib. Unless you’re running low on memory, this view will remain loaded for the duration of the life of your app.

    So if you need to update values every time the view will appear, consider moving that code to an override of viewWillAppear

    - (void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
    
        // your stuff goes here...
        [self updateSummaryData];
        [self calculateData];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that is using a modal view that has some buttons
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ in my code: I have this
I have a web application using ASP.NET 2.0 and I want to know if
I have a Php application using stream_socket_client(), to get data through tcp from a
I have a control application - using asp.net webservices. I have a timer which
I have a web application using JPA and JTA with Spring. I would like
I have a WPF application using Aero Glass. When using the application under a
I have a simple application using netbeans for developing and maven for building et
We currently have developed an application using WCF. Our clients make connections to different
I have to develop an application using C#.net that has to be run once

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.