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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:00:02+00:00 2026-06-03T18:00:02+00:00

I am writing a simple iPad appication using Xcode 4 and iOS5. I am

  • 0

I am writing a simple iPad appication using Xcode 4 and iOS5.

I am using a UISplitViewController to manage a master and detail view. Everything is working fine going from master to detail. I can select an item from the list and through the delegate it updates the detail view.

I want to be able to delete an item using a button on the detail view. This is very simple to do on the detail view. However, I cannot seem to figure out how to change the master view to reflect the fact that an item has been deleted.

Basically the delegate pattern seems to only go one way; from master to detail and not from detail to master. Is there a way to pass messages from the detail to the master?

  • 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-03T18:00:16+00:00Added an answer on June 3, 2026 at 6:00 pm

    You can do it with NSNotifications.

    #define ReloadMasterTableNotification @"ReloadMasterTableNotification"
    

    In your viewDidLoad of MasterViewController:

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reloadMasterTable:) name:ReloadMasterTableNotification object:_detailViewController];
    

    in dealloc of MasterViewController if you’re using ARC:

    [[NSNotificationCenter defaultCenter] removeObserver:self name:ReloadMasterTableNotification object:nil];
    

    When you want to make your update in the detailViewController to notify the MasterViewController:

    - (IBAction)onButtonPress {
            NSIndexPath *path = [NSIndexPath indexPathForRow:indexToUpdate inSection:0];
            NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:path, @"IndexPath", nil];
            [[NSNotificationCenter defaultCenter] postNotificationName:ReloadMasterTableNotification object:self userInfo:dict];
    }
    
    - (void)reloadMasterTable:(NSNotification *)notification {
        NSDictionary *dict = [notification userInfo];
        NSIndexPath *path = [dict objectForKey:@"IndexPath"];
        // update MasterViewController here
    }
    

    Hope that helps!

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

Sidebar

Related Questions

I'm writing simple GUI using wxPyhon and faced some problems. My application does simple
I am writing an iPad application using MonoTouch, MonoDevelop and Interface Builder, and i've
I'm working on writing simple unit tests for a Rails 3 project, but I'm
I am writing simple client-server program. Client send some messages to server using UDP
Hello I'm writing simple j2me calculator. using GameCanvas class as a basis of my
I'm writing simple solar system simulator. This is my first libgdx project. I'm using
I am writing simple CRUD(Create, Remove ,Update ,Delete) application using Spring MVC and hibernate.
I'm writing simple program to communicate between smart devices and I receive 11001 when
I'm looking into writing simple graphics code in Android and I've noticed some synchronized()
I am writing simple site that requires users and profiles to be handled. 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.