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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:59:31+00:00 2026-05-17T23:59:31+00:00

I have a UINavigationController with two UITableViewControllers (A and B). A is displayed first

  • 0

I have a UINavigationController with two UITableViewControllers (A and B).

A is displayed first and when the user taps a row on the display, A loads UITableViewController B and pushes it onto the stack.

The user can then update some data in B’s UITableView which may result in the tapped row on A’s UITableView needing to be updated.

The problem I’m trying to nut out is the best way for UITableViewController B to let UITableViewController A know that it needs to update the row.

I’ve thought of a number of different ways of doing this including:

  • Having A store the IndexPath and a reference to B so that when ViewWillAppear is called, it can check properties of B and then reload the cell at the IndexPath.

  • Have A monitor the core data NSMangedObjectContext through the notification system. Both controllers feed their data from core data. A would still need to store the IndexPath.

  • Having B somehow (through the UINavigationController?) look up the previous controller (A) and tell it that it needs to update the row.

None of these seem that eligant.

Is there a better way to do this?

  • 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-17T23:59:32+00:00Added an answer on May 17, 2026 at 11:59 pm

    The second one is the most elegant to me (and you could tweak it with KVO instead of notifications).

    And it is since it does not load B with more responsibilities that he needs (B cannot even know about A) whereas the third option makes B notify A. Plus it will be more independent from changes than the first one (because you are obliged to check the situation before A is loaded, and you use ViewWillApperar:, but this situation can change in the future)

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

Sidebar

Related Questions

I have a UINavigationController with two UITableViewControllers pushed onto its stack. Is there any
I have a UINavigationController. In its toolbar is a segmented control with two buttons.
I have an UITabBarController with two tabs: UINavigationController OptionsViewController : UIViewController How can I
I have a small problem with UINavigationController animation between two view. My application build
I have a UINavigationController containing an UIViewController initialized with a UIView. The UINavigationController also
I'm working on a simple iPhone app. I have 1 UINavigationController and 2 subclasses
I have an application with 5 UIViewController s each inside a corresponding UINavigationController ,
The issue: I have a UINavigationController as as subview of UIWindow, a rootViewController class
I have a modal view controller that I put onto screen using presentModalViewController:animated .
I have an annoying problem. I have an UINavigationController with an UITableView in the

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.