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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:10:56+00:00 2026-05-26T10:10:56+00:00

i want to send a message to a tableView in another controller. Actually i

  • 0

i want to send a message to a tableView in another controller.
Actually i am in detalViewController.
The tableView i want to address is in DashboardViewController:

-UIViewController
–UIView
—UITableView //i want to address this tableView.

How can i do that?
In my DetailViewController IBAction i have this code:

NSLog(@"previousBtn");

DashboardViewController *parent = (DashboardViewController *)self.parentViewController;
NSIndexPath *actualIndexPath = selectedRow2;
NSIndexPath * newIndexPath = [NSIndexPath indexPathForRow:actualIndexPath.row-1 inSection:actualIndexPath.section];  

My aim is to set the new selectRowAtIndexPath:

[parent.tableViews selectRowAtIndexPath:newIndexPath animated:YES  scrollPosition:UITableViewScrollPositionMiddle];  

but parent.tableViews is not the correct way
Thanks for help,
brush51

  • 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-26T10:10:57+00:00Added an answer on May 26, 2026 at 10:10 am

    Here is a workaround:

    iam checking the subviews array and from NSLog i see the tablview was objectAtIndex:0. Then i have put that in an “if then else” and do something with the table.
    In my case i do selectRowAtIndexPath: and didSelectRowAtIndexPath:

    DashboardViewController *parent = (DashboardViewController *)self.parentViewController;
    
    NSIndexPath *actualIndexPath = selectedRow2;
    NSIndexPath * newIndexPath = [NSIndexPath indexPathForRow:actualIndexPath.row-1 inSection:actualIndexPath.section];
    //[parent.tableViews selectRowAtIndexPath:newIndexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
    
    if([parent.view.subviews objectAtIndex:0]) {
        NSLog(@"drin!");
        UIView * subview = (UIView *) [parent.view.subviews objectAtIndex:0];
        UITableView *tView = (UITableView *) subview;
    
        [tView selectRowAtIndexPath:newIndexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
        [tView.delegate tableView:tView didSelectRowAtIndexPath:newIndexPath];
    }
    

    Hope someone can use this code and save a lot of time for try and error 🙂

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

Sidebar

Related Questions

I want to send a message to userID=3 by going to /MyController/Message/3 This executes
I want to send a message to a thread and handle it in the
I want to send a message whenever RabbitMQ creates or deletes a queue, exchange
How to trap signal on ruby running on windows? I want to send signal/message
I want to send an Email message after a page is returned to the
I want to make a script that can be used to send messages to
I want to create a PHP app that can send text messages ; There
I am using mail function as i want to send message in a format
I want to send broadcast message to all peers in my local network. Message
Hi am developing a app in which i want to send message automatically to

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.