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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:33:50+00:00 2026-06-15T23:33:50+00:00

I am developing a new iPad UISplitViewController App, I have a MasterView on the

  • 0

I am developing a new iPad UISplitViewController App, I have a MasterView on the left with Core Data objects. When a CoreData object is selected its details are shown in the DetailView. The object’s details are able to be edited and changed in the DetailView and then saved by pressing a button in the DetailView.

After the save button is pressed the user has to re-select the Core Data object in the MasterView to see Object’s updated information.

I want to reload the Object’s data when the save button is pressed.

I attempted to call the MasterView’s

- (void)tableView:(UITableView *)aTableView 
        didSelectRowAtIndexPath:(NSIndexPath *)indexPath

but have not been successful at updating the Objects details from the detailView.

Any suggestions or code would be greatly appreciated.

  • 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-06-15T23:33:52+00:00Added an answer on June 15, 2026 at 11:33 pm

    You need to use a NSFetchedResultsController in your master view. Pass the selected core data object to the detail view to be edited. When the save occurs, you can implement automatic callbacks to your table view by taking advantage of the NSFetchedResultsControllerDelegate protocol.

    In the protocol callback, things are quite simple. Here is a complete stub for the didChangeObject callback.

    -(void)controller:(NSFetchedResultsController *)controller 
        didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath 
        forChangeType:(NSFetchedResultsChangeType)type 
        newIndexPath:(NSIndexPath *)newIndexPath {
    
      if (type == NSFetchedResultsChangeDelete) {}
      else if (type == NSFetchedResultsChangeInsert) {}
      else if (type == NSFetchedResultsChangeMove) {}
      else if (type == NSFetchedResultsChangeUpdate) {      
         [self.tableView reloadRowsAtIndexPaths:@[indexPath]
              withRowAnimation:UITableViewRowAnimationAutomatic];
         UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
         [cell setSelected:YES animated:YES];
      }
    }
    

    The selection stuff (last two lines) is usually not required, but sometimes the selection gets lost – use this if you want to retain the visual indication of the selection.

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

Sidebar

Related Questions

I'm developing an app for iPad. I have a form (UIViewController) for adding new
I'm developing a new client-server app (.Net) and have up until now been using
I am developing for iPad and have created a standard UISplitViewController application using the
I am new to iOS (iphone and ipad) development. I am developing an app.
I'm developing an iOS application using Core Data. I want to have the persistent
I am interested in developing an app for my new iPad purely for my
I'm quite new to iOS/Objective-C Developing and I'm writing my first serious iPhone/iPad App.
I’m new to iOS development and currently developing an app for iPhone and iPad.
I'm developing an Ipad app. I have to use the POST method to sent
I am Developing an ipad app and would like to support the new retina

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.