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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:38:40+00:00 2026-05-14T19:38:40+00:00

Okay, so I’m working on an iPhone app with a preferences-esque section where there’s

  • 0

Okay, so I’m working on an iPhone app with a preferences-esque section where there’s a base TableView, which has one section, and several rows of customized cells to hold a name and a value label. Clicking on a row brings up another View, which allows the user to pick from a list (another TableView), and select an item.

All of these TableViews are done programatically. The base TableView has a property that holds a Controller instance for each of the “pick from the list” Views. Each of the “pick from the list” views has a property called chosenValue that has the currently-selected option. I’ve gotten the UI to handle the didSelectRowAtIndexPath to update the chosenValue property and then “pop” the view (going back to the main TableView). But, even though the main TableView’s cellForRowAtIndexPath method references the chosenValue property of the subview that’s held in a property, the view doesn’t update when an item is selected. In short, how can the sub-view trigger a reloadData on the parent object, after it “pops” and unloads?

  • 1 1 Answer
  • 1 View
  • 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-14T19:38:40+00:00Added an answer on May 14, 2026 at 7:38 pm

    You could realize this using the notifications or delegation, for example.

    Using notifications your first view controller has to register for a notification like this:

    …
    
    [[NSNotificationCenter defaultCenter] addObserver:self  
                                             selector:@selector(methodToBeCalled:)  
                                                 name:@"myNotification"  
                                               object:nil]; 
    
    …
    
    - (void)methodToBeCalled:(NSNotification *)notification { 
        [self.tableView reloadData];
        // do something else
    }
    

    Then you can raise a notification in your second view controller like this:

    [[NSNotificationCenter defaultCenter] postNotificationName:@"myNotification" object:nil];
    

    Using delegation you could implement a property for a delegate on the second view, set that to self before pushing the second view controller and call a method on the delegate when needed.

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

Sidebar

Related Questions

Okay, so I've got some C code to perform a mathematical operation which could,
Okay, This one is pretty simmilar to my last one, but I don't get
Okay, so I'm trying to create a list of he folders, and sub-folders and
okay, so I'm trying to get a directory of folders and sub folders, but
Okay, I've been struggling with this for a while now. I have a standard
Okay, I'm having some serious issues here. I'm new to this site, and new
Okay, I'm creating a program from a single class, let's call it John class.
Okay, I have read, and tried a lot of things on how to implement
Okay this is the css code I put on the master page so it
Okay, I'm trying to make a quick little class to work as a sort

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.