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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:48:26+00:00 2026-06-06T23:48:26+00:00

I have a master-detail application that has a tableview in the masterViewController and in

  • 0

I have a master-detail application that has a tableview in the masterViewController and in the detailview you can edit and add info into textfields and so on. I have a save button as the rightBarButtonItem in the detail view. If they did not save their work and they hit back I have a UIAlertView that popsup asking them if they want to save their work. Behind the alertview the detailview is still dismissed and the masterviewcontroller is now showing.

So when I hit save the tableview does not update. I have [tableview reloadData] in my masterviewcontroller viewWillAppear but it does not work because the viewappears behind the alertview before the user can hit save. I would like to call the [tableview reloadData] (or something similar) in this method here which is called from my detailview.

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

I can’t just call [tableview reloadData] because the alertViews delegate is set as the detailview because it is pulling all the information from the textfields to save into the plist if they push save on the alertview. Is there a way I can call [tableView reloadData] from my alertView?

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

    I figured it out. What I did was created a property of UITableViewController in my DetailViewController.h file and named it masterView then synthesized it in its .m file. I then went into my masterViewController.m file and found the method tableView:didSelectRowAtIndexPath:and set my detailsViewController.masterView property to self (self being the masterViewController).

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
          self.detailViewController.masterView = self;
    }
    

    I then went into my UIAlertView Save Method and called reloadData on the masterViews tableView

    - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
    {
        if (buttonIndex == 1) {
            [masterView.tableView reloadData];
        }
    }
    

    This is very much like passing info to an array or dictionary in the detail view from the tableView indexPath.row like this below (which is also in the method tableView:didSelectRowAtIndexPath:)

    self.detailViewController.detailItem = object;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a MVVM WPF application, I have a master-detail View that is used to
I have a simple Master-Detail application with a MasterViewController and a DetailViewController. Inside of
I have a master detail Application in xCode. In Master View Controller an Array
In .net objects like DataTable when you have two grids(Master and Detail) and add
I have a SplitViewController which has two UITableViewControllers - one master/root one detail. Everything
I have a simple iOS Master-Detail Application -> On the iPad it's a splitview,
I'm developing an application that uses a master-detail paradigm with an NSTableView as the
I have a classic master-detail scenario that I am implementing in backbone.js. For the
I am wondering if it is okay to have master and detail table for
I am using Microsoft SQL Server and I have a master-detail scenario where I

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.