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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:27:31+00:00 2026-05-26T20:27:31+00:00

I have a parent view (table) that passes a detail object to the child

  • 0

I have a parent view (table) that passes a detail object to the child view (table).

The parent view has a network request that gets data and passes data to the child view.

I want to be able to update the data when I’m in the child view. I think I need to call the parent view’s network request method while viewing the child view, and update the child table. Is this possible?

In Parent VC:

- (void)fetchAppointmentsForVisibleDate {   
    self.appointmentArray = [DataSource getTodayData:self.visibleDate];

    NSMutableArray *array = [NSMutableArray arrayWithCapacity:50];
    for (NSDictionary *appointment in self.appointmentArray)
    {
        [array addObject: [NSString stringWithFormat:@"%@: %@", [appointment objectForKey:@"scheduled_time"], [appointment objectForKey:@"patient"]]];
    }
    self.listData = array;

    [self.appointmentTableView reloadData];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    ChildVC *vc = [Child VC alloc]initWithNib@"ChildVC"];
    vc.appointmentDictionary = [self.appointmentArray objectAtIndex:path.row];
}
  • 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-26T20:27:32+00:00Added an answer on May 26, 2026 at 8:27 pm

    Is your network request is bound to be called by parent view.

    If its just a method you can set the delegate of your child to the parent.
    i.e in the parent view you can do

    create child object and just do

    child.delegate=self;
    

    and call your network method from child

    i.e [delegate networkMethod];

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

Sidebar

Related Questions

I have a parent-child view model object structure set up and need to update
i have a parent child table such that class Service( models.Model ): id =
I have a table that contains my node data in a tree view. Each
I have a database table that holds parent and child records much like a
I have a parent project that is branched to many dependent child projects. I
I have a parent class which contains a child object. I am using set
I have a table that looks like this: ID |Name |Parent 1 |A |NULL
I'm trying to update the data in the parent table that is referenced in
I have a Nav controller that starts at a table view. Each row pushes
Right I have a main layout defined, that has a frame, a table in

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.