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

  • Home
  • SEARCH
  • 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 9128495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:31:40+00:00 2026-06-17T07:31:40+00:00

I have a UITableViewController with a textLabel and a detailTextLabel , the thing is

  • 0

I have a UITableViewController with a textLabel and a detailTextLabel, the thing is that I want to pass a let’s say “hidden” third value which has an URL, so when I touch the row to the next UITableViewController I could use the delegate didSelectRowAtIndexPath to get the URL but how can I do this?

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

    You can send a dictionary to the next TableView. Import the SecondTableView controller .h file into your FirstTableView controller and then reference the target dictionary. You will also need to implement prepareForSegue and call it in didSelectRowAtIndexPath. Something like this:

    In didSelectRowAtIndexPath: (make sure to set the segue identifier in Storyboard if you are using it).

    [self performSegueWithIdentifier:@"toSecondTableViewController" sender:nil];
    

    In SecondTableViewController.h create your dictionary

    @property (nonatomic, retain)NSMutableDictionary *selectedDictionary;
    

    Make sure to synthesize this in the SecondTableViewController.m file.

    and then in your FirstTableViewController

    #import SecondTableViewController.h 
    //prepareForSegue
    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
        if ([segue.identifier isEqualToString:@"toSecondTableViewController"])
        {
            //create the dictionary to store the information from the array
            NSDictionary *dictionaryToPass;
    //MainTable is your TableView in your TableViewController
            NSIndexPath *indexpath = [self.MainTable indexPathForSelectedRow];
            NSLog(@"IndexPath is: %@",indexpath);
            //load correct information based on indexpath selected
    
                dictionaryToPass = [array objectAtIndex:indexpath.row];
    
            //create the view for the segue
            SecondTableViewController *secondTable = segue.destinationViewController;
    
    //pass the dictionary
            seriesTable.selectedDictionary = dictionaryToPass;
        }
    }
    

    You can then reference keys in the selectedDictionary in your SecondTableViewController and get that URL.

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

Sidebar

Related Questions

I have a UITableViewController that contains a tableView. I want to set its scrollView
I have UITableViewController which contains a list of items. Now, I want the list
I have a UITableViewController that has a UISearchbar in its header view. When the
I have a UITableViewController that has a background image. I am setting the image
I have a UITableViewController and I want to extend the tableHeaderView of that table
I have a UITableViewController that displays cells that are just default. Each cell can
I have an UITableViewController which I would like to add UIToolbar to with one
I have a UITableViewController that works in both portrait and landscape. From this controller
I have a UITableViewController with a table view that works perfectly when in portrait
I have a UITableViewController which lets the user drill down into different records. On

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.