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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:33:29+00:00 2026-06-16T07:33:29+00:00

In a View I have this structure vista1 UIView -> tabla1 UITableView -> tabla1_controller

  • 0

In a View I have this structure
vista1 UIView -> tabla1 UITableView -> tabla1_controller UITableViewController
vista2 UIView -> tabla2 UITableView -> tabla2_controller UITableViewController

I use views because depending of the orientation I move around the views.

Everything works fine, each tableviewcontroller gets data from sqlite and show the custom cells.

I want to add a behavior, when the user selects a cell in the second table, I want to change the content of the first table.

The first tableView gets information from a NSArray, how do I change 
So how can I make this happen?

this is the second tableviewcontroller


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

        /* I dunno how to reference the nsarray of the first table here */
        first_table_array = ....

        [tabla1 reloadData];        
    }

In this case is with two tableviewcontroller, but the real cuestion is,
How can I execute functions / change variables of another tableviewcontroller from one viewcontroller?

For example, in the tabla2_controller (UITableViewController) how can I execute [tabla1_controller reload] when the user clicks on a row of table2,
if both tables are in each own view and both views showed at the same time?

  • 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-16T07:33:31+00:00Added an answer on June 16, 2026 at 7:33 am

    In tabla2_controller, create a variable like below

    in .h file

    @property (nonatomic, retain) UITableViewController *table1Ref;
    

    in .m file

    @synthesize table1Ref;
    

    Then, when you create tabla2_controller, set tabla1_controller as value for this variable like below.

    tabla2_controller *t2c = [[UITableViewController alloc] init];
    t2c.table1Ref = t1c; //t1c is tabla1_controller
    

    Now, in didSelectRowAtIndexPath of tabla2_controller, do the following.

    tabla1_controller *t1c = self.table1Ref;
    [t1c.tableView reloadData];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this structure of views: window.templateLoaderView = Backbone.View.extend({}); window.PopupView = templateLoaderView.extend({ initialize: function
I have this script, which is displaying the   View --> Show Structure  
i have this structure: my_app application controllers forms models views data signature library public
I'm currently working on an app with this structure: I have a view controller
I have the following structure of the views UIView(1) |--> UIScrollView |-----------> UIView(2) |------>
In the main view i have this function public function lang($file, $language){ require 'languages/'.$language.'/'.
I have this view @model IEnumerable<ViewModelRound2> ... <snip> ... @{ using (Html.BeginForm(new { round1Ring3Bids
I have this view (DetailsContainer, first class in code section of this question) with
How can i dynamically load a Partial View? I mean I have this view,
I have this Haml view: !!! strict %html{:xmlns => http://www.w3.org/1999/xhtml} %head %meta{:content => text/html;

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.